protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; SetTheme(Resource.Style.MainTheme); base.OnCreate(savedInstanceState); Forms.SetFlags("CarouselView_Experimental"); Forms.SetFlags("SwipeView_Experimental"); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); IconEntryRenderer.Init(); CardsViewRenderer.Preserve(); AnimationViewRenderer.Init(); ImageCircleRenderer.Init(); CachedImageRenderer.Init(true); SharpnadoInitializer.Initialize(); CrossCurrentActivity.Current.Init(this, savedInstanceState); LoadApplication(new App(new AndroidInitialize())); }
// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. UIApplication.Main(args, null, "AppDelegate"); IconEntryRenderer.Init(); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); CachedImageRenderer.Init(); var config = new FFImageLoading.Config.Configuration() { VerboseLogging = false, VerbosePerformanceLogging = false, VerboseMemoryCacheLogging = false, VerboseLoadingCancelledLogging = false, //Logger = new CustomLogger(), }; //ImageService.Instance.Initialize(config); LoadApplication(new App()); UIBarButtonItem.Appearance.SetBackButtonTitlePositionAdjustment(new UIOffset(-100, -60), UIBarMetrics.Default); //UINavigationBar.Appearance.BarTintColor = UIColor.FromPatternImage(UIImage.FromFile("background_header.jpg")); //this.NavigationController.NavigationBar.SetBackgroundImage(UIImage.FromFile("Images/background_header.jpg"), UIBarMetrics.Default); //this.NavigationController.NavigationBar.TintColor = UIColor.White; //this.NavigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes() //{ // ForegroundColor = UIColor.White, // Font = UIFont.FromName("OpenSans-Semibold", 15f) //}; IconEntryRenderer.Init(); //FormsPlugin.Iconize.iOS.IconControls.Init(); //Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); return(base.FinishedLaunching(app, options)); }
// // 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(); IconEntryRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); IconEntryRenderer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); IconEntryRenderer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; UserDialogs.Init(this); base.OnCreate(bundle); //Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); Forms.Init(this, bundle); CurrentPlatform.Init(); LoadApplication(new App()); IconEntryRenderer.Init(); }
/// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; Xamarin.Forms.Forms.Init(e); IconEntryRenderer.Init(); if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (rootFrame.Content == null) { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter rootFrame.Navigate(typeof(MainPage), e.Arguments); } // Ensure the current window is active Window.Current.Activate(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; global::Xamarin.Forms.Forms.Init(this, bundle); Xamarin.FormsMaps.Init(this, bundle); IconEntryRenderer.Init(); AppCenter.Start("b0585775-e91e-4607-93e8-d36b1dcc2273", typeof(Analytics), typeof(Crashes)); NControlViewRenderer.Init(); try { LoadApplication(new App()); }catch (System.Exception ex) { Console.WriteLine(ex); } }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; UserDialogs.Init(this); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); IconEntryRenderer.Init(); LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.ic_logo; CachedImageRenderer.Init(enableFastRenderer: true); ViewGesturesRenderer.Init(); //Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); Forms.Init(this, bundle); CurrentPlatform.Init(); LoadApplication(new App()); //Window.AddFlags(WindowManagerFlags.LayoutNoLimits); //Window.AddFlags(WindowManagerFlags.LayoutInScreen); //Window.DecorView.SetFitsSystemWindows(true); }