how to display an option menu when an activity starts

爱⌒轻易说出口 提交于 2019-12-11 02:33:24

问题


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?

thanks


回答1:


Activity.openOptionsMenu().

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




回答2:


If you want options to appear at the bottom of the screen always, don't use the options menu. Just place buttons at the bottom of your screen.

However, keep in mind that this goes against the "Android way" of doing things, so make sure you understand how Android users are going to expect your application to look and work, and you have a good reason for doing something different.



来源:https://stackoverflow.com/questions/4349251/how-to-display-an-option-menu-when-an-activity-starts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!