Henley Wing Chiu
Henley Wing Chiu

Reputation: 22515

How to create Android tabs like this (screenshot)?

Any idea how to implement tabs like these (the one on top with home image, star, etc)

Tabs on top

Upvotes: 4

Views: 5516

Answers (4)

Snicolas
Snicolas

Reputation: 38168

Using tabs in an action bar on Ice Cream Sandwich.

Or ActionBarSherlock tabs for a full on backward compatibility.

Upvotes: 5

ZeroOne
ZeroOne

Reputation: 3171

Try this. The solution there is to use the setDividerDrawable(...) method of the TabWidget class. Then you can define the looks of the tabs with XML.

Upvotes: 0

android developer
android developer

Reputation: 116382

if you wish to use the same tabs-pager like on the android market app (aka google play) , you can get the android support library from the sdk manager and see their sample on ".../extras/android/support/samples/Support4Demos" . there , find the fragment example called "tabs and pager" . i think you will like it ... :)

Upvotes: 0

CommonsWare
CommonsWare

Reputation: 1006724

Those are so-called "swipey tabs", probably on top of a ViewPager. ViewPagerIndicator has an implementation of such tabs.

Upvotes: 3

Related Questions