예제 #1
0
파일: ActionModes.cs 프로젝트: adbk/spikes
		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();
                }
            };
        }
예제 #3
0
		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();
                }
            };
        }
예제 #5
0
			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);
 }