コード例 #1
0
		public SimpleMenuItem (SimpleMenu menu, int id, int order, ICharSequence title)
		{
			mMenu = menu;
			mId = id;
			mOrder = order;
			mTitle = title;
		}
コード例 #2
0
 public SimpleMenuItem(SimpleMenu menu, int id, int order, ICharSequence title)
 {
     mMenu  = menu;
     mId    = id;
     mOrder = order;
     mTitle = title;
 }
コード例 #3
0
		public virtual void OnPostCreate (Bundle savedInstanceState)
		{
			// Create the action bar
			SimpleMenu menu = new SimpleMenu (activity);
			activity.OnCreatePanelMenu ((int)WindowFeatures.OptionsPanel, menu);
			
			// TODO: call onPreparePanelMenu here as well
			for (int i = 0; i < menu.Size (); i++) {
				IMenuItem item = menu.GetItem (i);
				AddActionButtonCompatFromMenuItem (item);
			}
		}
コード例 #4
0
        public virtual void OnPostCreate(Bundle savedInstanceState)
        {
            // Create the action bar
            SimpleMenu menu = new SimpleMenu(activity);

            activity.OnCreatePanelMenu((int)WindowFeatures.OptionsPanel, menu);

            // TODO: call onPreparePanelMenu here as well
            for (int i = 0; i < menu.Size(); i++)
            {
                IMenuItem item = menu.GetItem(i);
                AddActionButtonCompatFromMenuItem(item);
            }
        }