-
Notifications
You must be signed in to change notification settings - Fork 569
Expand file tree
/
Copy pathMainActivity.cs
More file actions
28 lines (25 loc) · 874 Bytes
/
MainActivity.cs
File metadata and controls
28 lines (25 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
//${USINGS}
namespace ${ROOT_NAMESPACE}
{
[Register("${JAVA_PACKAGENAME}.MainActivity"), Activity(Label = "${PROJECT_NAME}", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate (Bundle savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate (savedInstanceState);
global::Xamarin.Forms.Forms.Init (this, savedInstanceState);
//${AFTER_FORMS_INIT}
LoadApplication (new App ());
//${AFTER_ONCREATE}
}
}
}