MainActivity.cs 928 B

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