public SimpleMenuItem (SimpleMenu menu, int id, int order, ICharSequence title)
		{
			mMenu = menu;
			mId = id;
			mOrder = order;
			mTitle = title;
		}
 public SimpleMenuItem(SimpleMenu menu, int id, int order, ICharSequence title)
 {
     mMenu  = menu;
     mId    = id;
     mOrder = order;
     mTitle = title;
 }
Exemplo n.º 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);
			}
		}
Exemplo n.º 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);
            }
        }