protected override void OnCreate(Bundle savedInstanceState) { 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); FloatingActionButton fab = FindViewById <FloatingActionButton>(Resource.Id.fab); fab.Click += FabOnClick; hud = new ZebraHud(); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); SetContentView(Resource.Layout.activity_main); Log.Info("XAMHUD", "ONCREATE: AFTER SETCONTENTVIEW"); tv2 = (TextView)FindViewById(Resource.Id.textView2); tv2.Text = "cxnt48"; hud = new ZebraHud(); Log.Info("XAMHUD", "ONCREATE: AFTER NEW ZEBRAHUD "); b2 = (Button)FindViewById(Resource.Id.button2); b2.Click += delegate { byte[] res_sm = hud.ShowMessage("HUD XAMARIN by N.DZL", "Hello from Milan Red-Zone"); Log.Info("XAMHUD", "AFTER SHOWMESSAGE"); }; }