MainActivity.cs 883 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using Android.App;
  3. using Android.Content.PM;
  4. using Android.Runtime;
  5. using Android.Views;
  6. using Android.Widget;
  7. using Android.OS;
  8. namespace DevDaysSpeakers.Droid
  9. {
  10. [Activity(Label = "Dev Days Speakers", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
  11. public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
  12. {
  13. protected override void OnCreate(Bundle bundle)
  14. {
  15. TabLayoutResource = Resource.Layout.Tabbar;
  16. ToolbarResource = Resource.Layout.Toolbar;
  17. base.OnCreate(bundle);
  18. Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
  19. global::Xamarin.Forms.Forms.Init(this, bundle);
  20. LoadApplication(new App());
  21. }
  22. }
  23. }