public override void OnViewCreated(View view, Bundle savedInstanceState) { base.OnViewCreated(view, savedInstanceState); mView = view; if (!rootActivity.IsNetEnable()) { return; } System.Threading.ThreadPool.QueueUserWorkItem(delegate { //rootActivity.ShowLoadingView(Constants.MSG_LOADING_USER_DATA); MemberModel.rootMember = rootActivity.GetUserObject(); //rootActivity.HideLoadingView(); rootActivity.RunOnUiThread(() => { SetUIVariablesAndActions(); SetInputBinding(); }); }); }
public override void OnResume() { base.OnResume(); System.Threading.ThreadPool.QueueUserWorkItem(delegate { rootActivity.ShowLoadingView("Loading data..."); var performanceData = rootActivity.GetPerformance(); var gaugeData = rootActivity.GetGauge(); rootActivity.HideLoadingView(); rootActivity.RunOnUiThread(() => { InitPerformanceGraph(performanceData); InitGaugeData(gaugeData); }); }); }