android:将菜单设置为/可见 [英] android : set the menu out / visible

查看:14
本文介绍了android:将菜单设置为/可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许这个问题已经有人问过了,但即使在 Android 文档的菜单"部分我也找不到任何相关信息......那么有谁知道是否有办法在活动中设置菜单(以避免用户点击手机的菜单按钮)...?

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)...?

推荐答案

Is 这是你在找什么Sephy?

Is this what you are looking for Sephy ?

Activity.openOptionsMenu()

这篇关于android:将菜单设置为/可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆