Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created July 11, 2017 03:22
Show Gist options
  • Select an option

  • Save Char0394/d3d76c5960605ab1ba632808cd8462c8 to your computer and use it in GitHub Desktop.

Select an option

Save Char0394/d3d76c5960605ab1ba632808cd8462c8 to your computer and use it in GitHub Desktop.
[Activity(Label = "PrismUnitySample.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App(new AndroidInitializer()));
}
public class AndroidInitializer : IPlatformInitializer
{
public void RegisterTypes(IUnityContainer container)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment