MainActivity.cs 772 B

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