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