protected override void OnCreate(Bundle savedInstanceState) { SetTheme(SampleList.THEME); //Used for theme switching in samples base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.action_modes); ((Button)FindViewById (Resource.Id.start)).Click += delegate { mMode = StartActionMode (new AnActionModeOfEpicProportions (this)); }; ((Button)FindViewById (Resource.Id.cancel)).Click += delegate { if (mMode != null) { mMode.Finish (); } }; }
protected override void OnCreate(Bundle savedInstanceState) { SetTheme(SampleList.THEME); //Used for theme switching in samples base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.action_modes); ((Button)FindViewById(Resource.Id.start)).Click += delegate { mMode = StartActionMode(new AnActionModeOfEpicProportions(this)); }; ((Button)FindViewById(Resource.Id.cancel)).Click += delegate { if (mMode != null) { mMode.Finish(); } }; }
protected override void OnCreate (Bundle savedInstanceState) { SetTheme (SampleList.THEME); //Used for theme switching in samples //You could also use Theme.Sherlock.NoActionBar or Theme.Sherlock.Light.NoActionBar RequestWindowFeature (WindowFeatures.NoTitle); base.OnCreate (savedInstanceState); SetContentView (Resource.Layout.action_modes); ((Button)FindViewById (Resource.Id.start)).Click += delegate { mMode = StartActionMode (new AnActionModeOfEpicProportions (this)); }; ((Button)FindViewById (Resource.Id.cancel)).Click += delegate { if (mMode != null) { mMode.Finish (); } }; }
protected override void OnCreate(Bundle savedInstanceState) { SetTheme(SampleList.THEME); //Used for theme switching in samples //You could also use Theme.Sherlock.NoActionBar or Theme.Sherlock.Light.NoActionBar RequestWindowFeature(WindowFeatures.NoTitle); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.action_modes); ((Button)FindViewById(Resource.Id.start)).Click += delegate { mMode = StartActionMode(new AnActionModeOfEpicProportions(this)); }; ((Button)FindViewById(Resource.Id.cancel)).Click += delegate { if (mMode != null) { mMode.Finish(); } }; }
public bool OnActionItemClicked (ActionMode mode, IMenuItem item) { Toast.MakeText (owner, "Got click: " + item, ToastLength.Short).Show (); mode.Finish (); return true; }
public bool OnActionItemClicked(ActionMode mode, IMenuItem item) { Toast.MakeText(owner, "Got click: " + item, ToastLength.Short).Show(); mode.Finish(); return(true); }