/// <summary> /// Called when the activity is starting. /// </summary> protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var view = new FrameLayout(this); SetContentView(view); // // Initialize the loading spinner. // LoadingSpinnerView = new Widgets.LoadingSpinner(this, null) { LayoutParameters = new FrameLayout.LayoutParams(( int )(80 * Resources.DisplayMetrics.Density), ( int )(80 * Resources.DisplayMetrics.Density)) { Gravity = GravityFlags.Center }, Visibility = ViewStates.Invisible }; view.SetZ(1); view.AddView(LoadingSpinnerView); MainActivity = this; // // Start the default action. // Crex.Application.Current.StartAction(this, Crex.Application.Current.Config.ApplicationRootUrl); }