Ejemplo n.º 1
0
        public override bool onCreateOptionsMenu(Menu menu)
        {
            MenuInflater inflater = getMenuInflater();

            inflater.inflate(R.menu.main_activity_actions, menu);
            return(base.onCreateOptionsMenu(menu));
        }
Ejemplo n.º 2
0
 public override bool onCreateOptionsMenu(Menu menu)
 {
     // Inflate the menu; this adds items to the action bar if it is present.
     MenuInflater.inflate(R.menu.office_mover, menu);
     mActionMenu = menu;
     return(true);
 }
Ejemplo n.º 3
0
        public override void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo)
        {
            base.onCreateContextMenu(menu, v, menuInfo);
            MenuInflater inflater = MenuInflater;

            inflater.inflate(R.menu.context_menu, menu);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// The change floor pattern popup menu
        /// </summary>
        private void renderChangeCarpetPopup()
        {
            View         menuItemView = findViewById(R.id.change_floor);
            PopupMenu    popup        = new PopupMenu(this, menuItemView);
            MenuInflater inflater     = popup.MenuInflater;

            inflater.inflate(R.menu.change_floor, popup.Menu);
            popup.OnMenuItemClickListener = new OnMenuItemClickListenerAnonymousInnerClassHelper2(this);
            popup.show();
        }
Ejemplo n.º 5
0
        /// <summary>
        /// The add item popup menu
        /// </summary>
        private void renderNewThingPopup()
        {
            View         menuItemView = findViewById(R.id.action_new_thing);
            PopupMenu    popup        = new PopupMenu(this, menuItemView);
            MenuInflater inflater     = popup.MenuInflater;

            inflater.inflate(R.menu.add_office_thing, popup.Menu);
            popup.OnMenuItemClickListener = new OnMenuItemClickListenerAnonymousInnerClassHelper(this);
            popup.show();
        }
Ejemplo n.º 6
0
        public override bool onCreateOptionsMenu(Menu menu)
        {
            MenuInflater.inflate(R.menu.menu, menu);
            MenuItem   mi         = menu.findItem(R.id.search);
            SearchView searchView = (SearchView)mi.ActionView;

            searchView.IconifiedByDefault  = true;
            searchView.OnQueryTextListener = new OnQueryTextListenerAnonymousInnerClassHelper(this);
            mi.OnActionExpandListener      = new OnActionExpandListenerAnonymousInnerClassHelper(this);
            return(true);
        }
Ejemplo n.º 7
0
        public override void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
        {
            Log.v(TAG, "onCreateOptionsMenu");
            inflater.inflate(R.menu.main, menu);
            base.onCreateOptionsMenu(menu, inflater);

            IDictionary <string, object> properties = new Dictionary <string, object>();

            properties[GoogleCastComponent.CAST_MENU]             = menu;
            properties[GoogleCastComponent.CAST_MENU_RESOURCE_ID] = R.id.media_router_menu_item;
            eventEmitter.emit(GoogleCastEventType.SET_CAST_BUTTON, properties);
        }
Ejemplo n.º 8
0
 public override bool onCreateOptionsMenu(Menu menu)
 {
     /* If a user is currently authenticated, display a logout menu */
     if (this.mAuthData != null)
     {
         MenuInflater.inflate(R.menu.main, menu);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 9
0
 public override bool onCreateOptionsMenu(Menu menu)
 {
     MenuInflater.inflate(R.menu.activity_draw_text1, menu);
     return(true);
 }
Ejemplo n.º 10
0
 public override bool onCreateOptionsMenu(Menu menu)
 {
     // Inflate the menu; this adds items to the action bar if it is present.
     MenuInflater.inflate(R.menu.activity_draw_bitmap, menu);
     return(true);
 }
Ejemplo n.º 11
0
 public override bool onCreateOptionsMenu(Menu menu)
 {
     MenuInflater.inflate(R.menu.menu_main, menu);
     return(true);
 }
Ejemplo n.º 12
0
		public override void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
		{
			base.onCreateOptionsMenu(menu, inflater);
			inflater.inflate(R.menu.menu_backgroundthread, menu);
		}
		public override void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
		{
			Log.v(TAG, "onCreateOptionsMenu");
			inflater.inflate(R.menu.main, menu);
			base.onCreateOptionsMenu(menu, inflater);

			IDictionary<string, object> properties = new Dictionary<string, object>();
			properties[GoogleCastComponent.CAST_MENU] = menu;
			properties[GoogleCastComponent.CAST_MENU_RESOURCE_ID] = R.id.media_router_menu_item;
			eventEmitter.emit(GoogleCastEventType.SET_CAST_BUTTON, properties);
		}
Ejemplo n.º 14
0
 public override void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
 {
     base.onCreateOptionsMenu(menu, inflater);
     inflater.inflate(R.menu.menu_backgroundthread, menu);
 }