How to create menus like the attached image in Android - android

I want to create an android application in which each menu should seen like the attached image. Is there any possible way to create this types of menus in android..
I am a beginner in android ..if anyone knows how to make this types of menus.. please give me an example code, it will very helpful for me.

Check out TabActivity. Or this is what you need to go through http://developer.android.com/design/building-blocks/tabs.html
For adding menu for an tab you can use ActionBar instead of TabActivity. This will give you an option to add Spinner to the Tab. http://developer.android.com/design/patterns/actionbar.html
But actionBar is available for API level 11 and above.

Related

Make a spinner-like dropdown box from a button?

I was trying to figure out how to create this style used in Google Now, how the "Settings" appears to be a Spinner drop-down box but does not use the typical Spinner design:
Any ideas/suggestions on how to emulate this?
Thanks!
This is called pop up menu. It is implemented in apidemos for example.
Did you look at the example of ApiDemos->Views->popup menu. This may be appropriate. Attached screenshot for your reference. Pop up menu is available since API 11. Ref.
http://developer.android.com/reference/android/widget/PopupMenu.html
or
This could be useful too
http://i.stack.imgur.com/AiAOg.png
You can get the Library from: https://github.com/JakeWharton/ActionBarSherlock
or
If you want to display icon along with menu items then I recommend to visit this post,
Please refer to this solution stackoverflow.com/a/11765787/1143977

How to customize the tab in Android like this?

I am new in android development and I am working on the TabHost, I need to customize the tabs following is the screen shot link how i want to show my tabs.
text in starting should be dynamic and can change based on the tabs click
In screen shot i have selected chat if I select home the text should change to Home etc.
please help me to solve this out thanks...
That's called an ActionBar. If you're developing under 3.0 or higher it's standard. If you want to support earlier versious, you can check Greendroid or ActionBar Sherlock libraries ;-)
This is an ActionBar if I am not wrong, you can use ActionBarSherlock for your app it's located here

How to make a menu like in Dropbox app?

i want to make menu in my android app which looks like the one in the dropbox-app.
I guess I have to work with fragments, what I already do, but i cant find any examples on how to implement this. Maybe someone can give me any hints how to make this menu like:
Here you can find an example image of the dropbox app:
You can open it with a single click. I want to use it on a gridview.
Maybe I just do not know the right name of such a menu to search for.
Thanks in advance for your help!
Action bar is supported in 3.1 API's but you can use context menu for this
Or This can also be done using "sliding drawer "

Which is the best way to create custom tabs in Android 2.2

I would like to know which will be the best method to create custom tabs in Android 2.2. something like this.
I know about the TabHost but not satisfied with its UI. I would like to create my own tab UI in 2.2 like shown in the above pic. Please suggest me the best and easy method to do this.
Create a custom view for your tab complete with state lists drawables and more!
Best tutorial for you:
http://joshclemm.com/blog/?p=136
And this is a example code:
http://code.google.com/p/android-custom-tabs/
ActionBarSherlock has tab feature. You can download Demos Sample from here and look at Tab Navigation Sample. I think you can find it useful.

Create grid-style layout for Options Menu in Android 4.0.3

I've just met some troubles in Android 4.0.3 with menu because it displays menu item in a list. But I can't a way to set it displaying in a grid-like layout.
Appreciate help.
My friend, I found the main reason why you couldn't display option menu as grid-style in Android 4.0.3.
Because you used #android:style/Theme.Holo for your application.
Menu of Theme.Holo was set for displaying in list-style.
The solutions are:
1, Try to use another theme such as #android:style/Theme.Wallpaper.NoTitleBar instead of #android:style/Theme.Holo.Wallpaper.NoTitleBar
2, Or if you still want to use Theme.Holo, so try to create a style for menu in values/style.xml. References: see styles in Android Framework. (Sr, I don't have Android framework here, so I can't show you what to do exactly now)
Hope this help!

Categories

Resources