Reputation: 22515
Any idea how to implement tabs like these (the one on top with home image, star, etc)
Upvotes: 4
Views: 5516
Reputation: 38168
Using tabs in an action bar on Ice Cream Sandwich.
Or ActionBarSherlock tabs for a full on backward compatibility.
Upvotes: 5
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
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
Reputation: 1006724
Those are so-called "swipey tabs", probably on top of a ViewPager
. ViewPagerIndicator
has an implementation of such tabs.
Upvotes: 3