diff options
Diffstat (limited to 'PagesGallery/PagesGallery.Droid/MainActivity.cs')
-rw-r--r-- | PagesGallery/PagesGallery.Droid/MainActivity.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PagesGallery/PagesGallery.Droid/MainActivity.cs b/PagesGallery/PagesGallery.Droid/MainActivity.cs new file mode 100644 index 00000000..b991250c --- /dev/null +++ b/PagesGallery/PagesGallery.Droid/MainActivity.cs @@ -0,0 +1,24 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; + +namespace PagesGallery.Droid +{ + [Activity(Label = "PagesGallery", Theme = "@style/MyTheme", Icon = "@drawable/icon", MainLauncher = true, + ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] + public class MainActivity : FormsAppCompatActivity + { + protected override void OnCreate(Bundle bundle) + { + ToolbarResource = Resource.Layout.Toolbar; + TabLayoutResource = Resource.Layout.Tabbar; + + base.OnCreate(bundle); + + Forms.Init(this, bundle); + LoadApplication(new App()); + } + } +}
\ No newline at end of file |