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.