Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
171 views
in Technique[技术] by (71.8m points)

android - How to use menu in layout

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 enter image description here

Here is my actual app which contains linear layout and i need a menu in this layout. please help me..

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...