/// <summary> /// For test commit and bla bla bla /// </summary> /// <param name="bundle"></param> protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); GifImageViewRenderer.Init(); XamForms.Controls.Droid.Calendar.Init(); LoadApplication(new App()); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); XamForms.Controls.iOS.Calendar.Init(); PullToRefreshLayoutRenderer.Init(); GifImageViewRenderer.Init(); SlideOverKit.iOS.MenuContainerPageiOSRenderer renderer = new SlideOverKit.iOS.MenuContainerPageiOSRenderer(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { Current = this; App.ScreenWidth = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); UserDialogs.Init(this); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); Plugin.Iconize.Iconize .With(new MaterialModule()) .With(new TypiconsModule()); GifImageViewRenderer.Init(); //Set our status bar helper DecorView. This enables us to hide the notification bar for fullscreen StatusBarHelper.DecorView = Window.DecorView; int statusBarResourceId = Resources.GetIdentifier("status_bar_height", "dimen", "android"); if (statusBarResourceId > 0) { StatusBarHelper.StatusBarHeight = Resources.GetDimensionPixelSize(statusBarResourceId); } global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App(new AndroidInitializer())); if (!Resolver.IsSet) { this.SetIoc(); } }