MainActivity.cs 827 B

123456789101112131415161718192021222324252627
  1. using Android.App;
  2. using Android.Content.PM;
  3. using Android.OS;
  4. namespace DataPages.Droid
  5. {
  6. [Activity(Label = "DataPages.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
  7. public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
  8. {
  9. protected override void OnCreate(Bundle bundle)
  10. {
  11. TabLayoutResource = Resource.Layout.Tabbar;
  12. ToolbarResource = Resource.Layout.Toolbar;
  13. base.OnCreate(bundle);
  14. global::Xamarin.Forms.Forms.Init(this, bundle);
  15. var x = typeof(Xamarin.Forms.Themes.DarkThemeResources);
  16. x = typeof(Xamarin.Forms.Themes.LightThemeResources);
  17. x = typeof(Xamarin.Forms.Themes.Android.UnderlineEffect);
  18. LoadApplication(new App());
  19. }
  20. }
  21. }