protected override void OnCreate(Bundle bundle) { base.Window.RequestFeature(WindowFeatures.ActionBar); // Name of the MainActivity theme you had there before. // Or you can use global::Android.Resource.Style.ThemeHoloLight base.SetTheme(Resource.Style.MainTheme); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); CrossCurrentActivity.Current.Init(this, bundle); //CrossCurrentActivity.Current.Activity = this; CircleViewRenderer.Initialize(); Forms.SetFlags("FastRenderers_Experimental"); global::Xamarin.Forms.Forms.Init(this, bundle); UserDialogs.Init(this); ImageCircleRenderer.Init(); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle); CustomTabsConfiguration.CustomTabsClosingMessage = null; LoadApplication(new App(new AndroidInitializer())); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); CircleViewRenderer.Initialize(); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); CircleViewRenderer.Initialize(); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }