如何使用菜单布局 [英] How to use menu in layout
问题描述
我要寻找一个在布局菜单..怎么办呢..我不希望在动作条的默认菜单。因为我做到了禁用我的应用程序..其没用..我没有这个好.. PLZ说我一些样品做..感谢ü提前。
I am looking for menu in layout.. how to do it.. i don't want default Menu in action bar. because i made it Disable.. its no use in my application.. I am not good in this.. plz say me some sample to do this.. thank u in advance.
我使用的冰淇淋sandwich.sdk 11
I am using ice cream sandwich.sdk 11
下面使用操作栏显示它的菜单以这种方式显示图片...我天玑因为我不是在我的应用程序使用操作栏要以这种方式
Below images showing using action bar its showing menu in this way... i dnt want in this way because i am not using Action bar in my App
下面是我其中包含线性布局的实际应用,我需要一个菜单在此布局。请帮我..
Here is my actual app which contains linear layout and i need a menu in this layout. please help me..
推荐答案
使用了一系列的自定义视图和处理他们的`的onClick'方法来实现片段的交换来充当菜单?
Use a series of custom views and handle their `onClick' methods to implement the switching of fragments to act as a menu?
请参阅我的问题<一href=\"http://stackoverflow.com/questions/11831124/action-bar-in-api-level-3-0-but-still-support-api-3-0\">here怎么我实现了自定义动作条。尽管它的动作栏的原理是一样的。
See my question here of how I implemented a custom ActionBar. Even though its an action bar the principle is the same.
这篇关于如何使用菜单布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!