lorless
lorless

Reputation: 4488

Creating Navigation Tabs in Android

I'm new to Android (and Java to some extent).

My question is how can I create a tabbed action bar for navigation in an Android Application?

The possibilities and variances are mind boggling and i cant tell what is useful or not.

On the Android developer site it says you can use navigation tabs with fragments but all i want the navigation tabs to do is start activities so fragments seems overcomplicated and unnecessary.

All I want is a nice tabbed navigation bar with three options. I also have one option in the action bar for a quick action. Some sites are suggesting action bar sherlock but this is throwing up errors that i cant seem to fix.

Surely i dont have to download a whole separate library just to make a tabbed action bar that starts activities when each is touched.

(sorry im really new to this and Android is totally impenetrable at the moment)

Upvotes: 0

Views: 7861

Answers (2)

Andrew Quebe
Andrew Quebe

Reputation: 2293

I am an Android developer and when I first started, figuring out all of the ways to build Android apps was overwhelming. Navigational tabs were my worst issue. You can read all about tabs here. If you would like some code examples there are repositories on Github like this one.

Hope this helps,

Andrew

Upvotes: 1

turnt
turnt

Reputation: 3255

Take a look at the action bar api:

http://developer.android.com/guide/topics/ui/actionbar.html

Also, realize that you don't need to download "extra" libraries.

Upvotes: 2

Related Questions