Timo Josten
Timo Josten

Reputation: 666

How to create a GMail.app like menu

I'm new into Android programming, but making steady progress with it. My app has several activities, and I would like to add an GMail.app like menu to it.

enter image description here

It would be very stunning if someone could give me a hint what I should search the API docs for to create a menu like this. Thanks a lot.

Upvotes: 1

Views: 371

Answers (3)

TJ Thind
TJ Thind

Reputation: 784

If you're targeting API 11 and higher you can just use the ActionBar. If you want to provide the same UI for devices with older versions of Android as well, you can give ActionBarSherlock a try. Here's a tutorial on how to use it.

Upvotes: 1

Kevin Coppock
Kevin Coppock

Reputation: 134664

Specifically what you're looking for in this case is the ActionBar Dropdown Navigation Mode (see the ActionBar docs). Of course, this is only for API level 11 and higher since it involves the ActionBar.

Upvotes: 1

Jason L
Jason L

Reputation: 1822

You can start off by creating a custom Menu. Read up on it here. To have your Menu look a certain way, you'll want to mess with Themes and Styles. You can find a basic tutorial on that here. Your question is somewhat broad so I can't provide specific code examples, but the links should get you on your way.

Upvotes: 1

Related Questions