android : set the menu out / visible

2019-04-12 00:42发布

问题:

Maybe this question has been asked already but I can't find any information about that even in the "Menu" section of Android's doc... So does anyone know if there is a way to set the menu out on an activity (to avoid the user clicking on the menu button of the phone)...?

回答1:

Is this what you are looking for Sephy ?

Activity.openOptionsMenu()


回答2:

I'm not quite sure what you are asking. The menu button is often a physical button on the phone, so you can't make it invisible if that is what you are asking. You can refrain from adding items to the menu. Then clicking the menu wouldn't do anything.



标签: android menu