protected override void OnCreate(Bundle bundle) { instance = this; // IconControls.Init(Resource.Id.toolbar, Resource.Id.tabs); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); ImageCircle.Forms.Plugin.Droid.ImageCircleRenderer.Init(); IconControls.Init(Resource.Layout.Toolbar, Resource.Layout.Tabbar); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.EntypoPlusModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeModule()) .With(new Plugin.Iconize.Fonts.IoniconsModule()) .With(new Plugin.Iconize.Fonts.MaterialModule()) .With(new Plugin.Iconize.Fonts.MeteoconsModule()) .With(new Plugin.Iconize.Fonts.SimpleLineIconsModule()) .With(new Plugin.Iconize.Fonts.TypiconsModule()) .With(new Plugin.Iconize.Fonts.WeatherIconsModule()); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); LoadApplication(new App()); CheckGcmClient(); }
protected override async void OnCreate(Bundle bundle) { //MyCensus.BasePage.MyPage.EmulateBackPressed = OnBackPressed; TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; ////缓存 //CacheUtils.Init(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal)); ////缓存保持时间默认10分钟 //CacheUtils.CACHE_HOLD_TIME = new TimeSpan(0, 10, 0); ////最大响应内容缓冲区大小 //CacheUtils.MAX_RESPONSE_CONTENT_BUFFER_SIZE = 256000; ////HTTP客户端请求超时 //CacheUtils.TIMEOUT = new TimeSpan(0, 1, 30); //初始Icon 字体图标 Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); //初始对话框组件 UserDialogs.Init(this); //初始图片缓存渲染器 FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true); //注册底部Tab导航菜单栏控件 SetupBottomTabs(); base.OnCreate(bundle); //初台化百度地图 //SDKInitializer.Initialize(Application.Context); SDKInitializer.Initialize(Application.Context); //注册弹出框输入 Rg.Plugins.Popup.Popup.Init(this, bundle); //拍照 await CrossMedia.Current.Initialize(); //扫码 //https://github.com/Redth/ZXing.Net.Mobile ZXing.Net.Mobile.Forms.Android.Platform.Init(); //图片浏览 Stormlion.PhotoBrowser.Droid.Platform.Init(this); global::Xamarin.Forms.Forms.Init(this, bundle); //初始IconControls IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); //版本更新 OperatingSystemVersionProvider.Init(this); //LoadApplication(new App()); LoadApplication(new App(new AndroidInitializer())); }
public static void Init() { Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.MaterialModule()); IconControls.Init(); ImageCircleRenderer.Init(); CachedImageRenderer.Init(); }
// // 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) { //Calabash.Start(); Forms.Init(); LoadApplication(new App()); IconControls.Init(); Iconize.With(new FontAwesomeModule()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); IconControls.Init(Resource.Id.toolbar, Resource.Id.tabs); ToolbarResource = Resource.Layout.toolbar; TabLayoutResource = Resource.Layout.tabs; LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); Plugin.Iconize.Iconize.With(new MaterialModule()) .With(new IoniconsModule()); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App(new AndroidInitializer())); }
// // 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) { SQLitePCL.Batteries.Init(); Forms.Init(); IconControls.Init(); Iconize.With(new FontAwesomeModule()); ImageCircleRenderer.Init(); LoadApplication(new App(new ToDoInitializer())); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { Forms.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); Infrastructure.Init(); Iconize.With(new Plugin.Iconize.Fonts.MaterialModule()); IconControls.Init(); InitPlugins(); ConfigureUI(); LoadApplication(new App()); return(base.FinishedLaunching(uiApplication, launchOptions)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.tabs; ToolbarResource = Resource.Layout.toolbar; base.OnCreate(bundle); Forms.Init(this, bundle); IconControls.Init(Resource.Id.toolbar); Iconize.With(new FontAwesomeModule()); ImageCircleRenderer.Init(); LoadApplication(new App(new ToDoInitializer())); }
// // 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) { Forms.Init(); CurrentPlatform.Init(); SQLitePCL.Batteries.Init(); CachedImageRenderer.Init(); Iconize.With(new FontAwesomeModule()) .With(new IoniconsModule()) .With(new MedicalFontModule()); IconControls.Init(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Forms.Init(this, savedInstanceState); CarouselViewRenderer.Init(); CachedImageRenderer.Init(true); UserDialogs.Init(this); Iconize.With(new Plugin.Iconize.Fonts.MaterialModule()); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; //MakeStatusBarTranslucent(true); InitMessageCenterSubscriptions(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); //adding iconize package Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); global::Xamarin.Forms.Forms.Init(this, bundle); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); ToolbarResource = Resource.Layout.toolbar; TabLayoutResource = Resource.Layout.tabs; #region paypal-conf CrossPayPalManager.Init(new PayPalConfiguration( PayPal.Forms.Abstractions.Enum.PayPalEnvironment.NoNetwork, "AbpLXvsoTb4Qrd1qQbGl6QsllrYC - QSumRWB3rlM6nbBtx01ngomIDdiyF94lZaz47lVsY7Mt5MveM20" ) { //If you want to accept credit cards AcceptCreditCards = true, //Your business name MerchantName = "Test Store", //Your privacy policy Url MerchantPrivacyPolicyUri = "https://www.example.com/privacy", //Your user agreement Url MerchantUserAgreementUri = "https://www.example.com/legal", // OPTIONAL - ShippingAddressOption (Both, None, PayPal, Provided) ShippingAddressOption = ShippingAddressOption.Both, // OPTIONAL - Language: Default languege for PayPal Plug-In Language = "es", // OPTIONAL - PhoneCountryCode: Default phone country code for PayPal Plug-In PhoneCountryCode = "52", } ); #endregion LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.tabs; ToolbarResource = Resource.Layout.toolbar; CurrentPlatform.Init(); CachedImageRenderer.Init(); base.OnCreate(bundle); Iconize.With(new FontAwesomeModule()) .With(new IoniconsModule()) .With(new MedicalFontModule()); Forms.Init(this, bundle); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); LoadApplication(new App(new AndroidInitializer())); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize); global::Xamarin.Forms.Forms.Init(this, bundle); global::Xamarin.FormsMaps.Init(this, bundle); Iconize.With(new FontAwesomeModule()) .With(new MaterialModule()); IconControls.Init(); ImageCircleRenderer.Init(); LoadApplication(new App(new AndroidInitializer())); }
/// <summary> /// *************************************************************************************** /// YOU HAVE 17 SECONDS to return from this method, or iOS will terminate your application. /// *************************************************************************************** /// /// 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. /// </summary> /// <param name="app">The application.</param> /// <param name="options">The options.</param> /// <returns><c>true</c> is the application finishes loading, otherwise, <c>false</c>.</returns> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Iconize.With(new Plugin.Iconize.Fonts.EntypoPlusModule()) .With(new Plugin.Iconize.Fonts.FontAwesomeModule()) .With(new Plugin.Iconize.Fonts.IoniconsModule()) .With(new Plugin.Iconize.Fonts.MaterialModule()) .With(new Plugin.Iconize.Fonts.MeteoconsModule()) .With(new Plugin.Iconize.Fonts.SimpleLineIconsModule()) .With(new Plugin.Iconize.Fonts.TypiconsModule()) .With(new Plugin.Iconize.Fonts.WeatherIconsModule()); global::Xamarin.Forms.Forms.Init(); IconControls.Init(); App.PhoneType = PHONE_TYPE; LoadApplication(new App(new Setup())); 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) { UINavigationBar.Appearance.BarTintColor = UIColor.FromRGBA(188, 32, 38, 1); UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes { TextColor = UIColor.White }); UINavigationBar.Appearance.TintColor = UIColor.White; UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); global::Xamarin.Forms.Forms.Init(); global::Xamarin.FormsMaps.Init(); Iconize.With(new FontAwesomeModule()) .With(new MaterialModule()); IconControls.Init(); ImageCircleRenderer.Init(); var behaviors = new Prism.Behaviors.BehaviorBase <Xamarin.Forms.ListView>(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { Plugin.Iconize.Iconize .With(new Plugin.Iconize.Fonts.IoniconsModule()) .With(new Plugin.Iconize.Fonts.MaterialModule()); IconControls.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs); TabLayoutResource = Resource.Layout.tabs; ToolbarResource = Resource.Layout.toolbar; UserDialogs.Init(this); CrossCurrentActivity.Current.Init(this, bundle); base.Window.RequestFeature(WindowFeatures.ActionBar); base.SetTheme(Resource.Style.MyTheme_Base); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); // CachedImageRenderer.Init(true); ImageCircleRenderer.Init(); MobileBarcodeScanner.Initialize(Application); LoadApplication(new App(new AndroidInitializer())); }
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(); } }
public static void Init() { Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); IconControls.Init(); }
public static void Init() { StaticResources.FileReader = new FileReader(); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); IconControls.Init(); }