Android: set menu left / right

Perhaps this question has already been asked, but I can not find any information about it even in the "Menu" section of the Android document ... So does anyone know if there is a way to configure the menu to act (so that the user does not press the menu button on phone) ...?

+3
source share
2 answers

Is this what you are looking for Sephy?

Activity.openOptionsMenu()
+5
source

I'm not quite sure what you are asking. The menu button is often a physical button on the phone, so you cannot make it invisible if that is what you are asking for. You may refrain from adding items to the menu. Then clicking on the menu did nothing.

0

Source: https://habr.com/ru/post/1735721/


All Articles