How to use menu in layout

你离开我真会死。 提交于 2019-12-13 09:00:44

问题


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.

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


回答1:


Use a series of custom views and handle their `onClick' methods to implement the switching of fragments to act as a menu?

See my question here of how I implemented a custom ActionBar. Even though its an action bar the principle is the same.



来源:https://stackoverflow.com/questions/12779308/how-to-use-menu-in-layout

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