public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { MemberModel = new RootMemberModel(); rootActivity = this.Activity as SwipeTabActivity; return(inflater.Inflate(Resource.Layout.fProfile, container, false)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.EditProfileActivity); Window.SetBackgroundDrawableResource(Resource.Drawable.bg_new); MemberModel = new RootMemberModel(); if (!IsNetEnable()) { return; } System.Threading.ThreadPool.QueueUserWorkItem(delegate { ShowLoadingView(Constants.MSG_LOADING_USER_DATA); MemberModel.rootMember = GetUserObject(); HideLoadingView(); RunOnUiThread(() => { SetInputBinding(); }); }); SetUIVariablesAndActions(); SetInputValidation(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.AnalyticsActivity); this.Window.SetFlags(WindowManagerFlags.KeepScreenOn, WindowManagerFlags.KeepScreenOn); if (!IsNetEnable()) { return; } MemberModel = new RootMemberModel(); MemberModel.rootMember = GetUserObject(); _locationManager = GetSystemService(Context.LocationService) as LocationManager; contextPref = PreferenceManager.GetDefaultSharedPreferences(ApplicationContext); filePref = Application.Context.GetSharedPreferences("goheja", FileCreationMode.Private); contextPrefEdit = contextPref.Edit(); filePrefEdit = filePref.Edit(); contextPrefEdit.PutFloat("gainAlt", 0f).Commit(); contextPrefEdit.PutFloat("lastAlt", 0f).Commit(); contextPrefEdit.PutFloat("dist", 0f).Commit(); filePrefEdit.PutFloat("lastAlt", 0f); filePrefEdit.PutFloat("gainAlt", 0f); filePrefEdit.PutFloat("distance", 0f); filePrefEdit.PutString("prevLoc", ""); filePrefEdit.Commit(); InitUISettings(); //CheckLocationPermission(); }
public ProfileViewController(IntPtr handle) : base(handle) { MemberModel = new RootMemberModel(); }
public AnalyticsViewController(IntPtr handle) : base(handle) { MemberModel = new RootMemberModel(); }
public SeriousViewController(IntPtr handle) : base(handle) { MemberModel = new RootMemberModel(); }