protected override void OnCreate(Bundle savedInstanceState) { try { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); //BoomMenuButton boot = FindViewById<BoomMenuButton>(Resource.Id.bmb); BoomMenuButton boot = FindViewById <BoomMenuButton>(Resource.Id.boomButton1); //FloatingActionButton fab = FindViewById<FloatingActionButton>(Resource.Id.fab); //fab.Click += FabOnClick; Android.Runtime.AndroidEnvironment.UnhandledExceptionRaiser += MyApp_UnhandledExceptionHandler; System.AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; System.Threading.Tasks.TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; } catch { } }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); BoomMenuButton bmb = FindViewById <BoomMenuButton>(Resource.Id.bmb); bmb.ButtonEnum = ButtonEnum.SimpleCircle; bmb.ButtonPlaceEnum = ButtonPlaceEnum.Sc1; bmb.Click += Bmb_Click; }