活动开始时如何显示选项菜单 [英] how to display an option menu when an activity starts

查看:67
本文介绍了活动开始时如何显示选项菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个活动,希望在其上显示选项菜单.但是,我希望在显示活动的所有时间都显示选项菜单.我不希望我的用户单击(选择)菜单按钮来显示它.我希望它一直存在.我该怎么办?

I've activity that i want an option menu to be displayed on. But, i want the option menu to be displayed all the time the activity is displayed. I don't want my users to click (select) the menu button to display it. I want it to be there all the time. How can i do it?

谢谢

推荐答案

Activity.openOptionsMenu().

从设计的角度来看,我必须同意Mayra.一开始使用的方法错误.

From a design standpoint, I have to agree with Mayra. Wrong approach to begin with.

这篇关于活动开始时如何显示选项菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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