Skip to content

Instantly share code, notes, and snippets.

@Osmosis311
Created May 11, 2018 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Osmosis311/776a5b4ad083d2fc0570afca3d2e6dd7 to your computer and use it in GitHub Desktop.
Save Osmosis311/776a5b4ad083d2fc0570afca3d2e6dd7 to your computer and use it in GitHub Desktop.
MainActivity
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);
CrossCurrentActivity.Current.Init(this, bundle);
CrossCurrentActivity.Current.Activity = this;
LoadApplication(new App(new MemberApp.Droid.AndroidPlatformInitializer()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment