Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            iOSShinyHost.Init(new Startup());
            Forms.Init();
            FormsMaps.Init();
            this.LoadApplication(new App());
            SettingsViewInit.Init();
            Material.Init();

            return(base.FinishedLaunching(app, options));
        }
Exemplo n.º 2
0
        //
        // 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)
        {
            Xamarin.Forms.Forms.Init();

            AiForms.Effects.iOS.Effects.Init();
            SettingsViewInit.Init();
            Xamarin.Forms.Svg.iOS.SvgImage.Init();

            LoadApplication(new App(new iOSInitializer()));

            return(base.FinishedLaunching(app, options));
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Forms.Init(this, savedInstanceState);
            FormsMaps.Init(this, savedInstanceState);
            SettingsViewInit.Init();
            Material.Init(this, savedInstanceState);

            this.LoadApplication(new App());
        }
Exemplo n.º 4
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            Xamarin.Forms.Forms.Init(this, bundle);
            AiForms.Effects.Droid.Effects.Init();
            Xamarin.Forms.Svg.Droid.SvgImage.Init(this);
            SettingsViewInit.Init(this);


            LoadApplication(new App(new AndroidInitializer()));
        }
Exemplo n.º 5
0
        // Launches the startup task
        protected override void OnResume()
        {
            base.OnResume();
            Task startupWork = new Task(async() => {
                Log.Debug(TAG, "Performing some startup work that takes a bit of time.");
                Forms.Init(this, _savedInstanceState);
                Popup.Init(this, _savedInstanceState);

                SettingsViewInit.Init(); // need to write here
                Effects.Init();          //need to write here
                this.ShinyOnCreate();

                Log.Debug(TAG, "Startup work is finished - starting MainActivity.");
                StartActivity(new Intent(Application.ApplicationContext, typeof(MainActivity)));
            });

            startupWork.Start();
        }
Exemplo n.º 6
0
        protected override void OnCreate(Bundle bundle)
        {
            // Name of the MainActivity theme you had there before.
            // Or you can use global::Android.Resource.Style.ThemeHoloLight
            base.SetTheme(Resource.Style.MainTheme);
            Window.RequestFeature(Android.Views.WindowFeatures.ActionBar);
            base.OnCreate(bundle);
            Task.Run(() =>
            {
                Popup.Init(this, bundle);

                SettingsViewInit.Init(); // need to write here
                Effects.Init();          //need to write here
                this.ShinyOnCreate();
            });
            Forms.Init(this, bundle);


            LoadApplication(new App());
        }
Exemplo n.º 7
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            XfxControls.Init();
            Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();

            CarouselViewRenderer.Init();
            FormsMaterial.Init();
            SettingsViewInit.Init();
            Effects.Init();


            //Le damos estilo al TabBar
            UITabBar.Appearance.BackgroundImage = new UIImage();
            UITabBar.Appearance.ShadowImage     = new UIImage();
            UITabBar.Appearance.BarTintColor    = UIColor.Clear;

            //UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            //UIApplication.SharedApplication.SetStatusBarHidden(false, false);

            LoadApplication(new App(new iOSInitializer()));
            return(base.FinishedLaunching(app, options));
        }