How to create Android tabs like this (screenshot)?

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

Tabs on top

+4
source share
4 answers

Using tabs in the action bar in an ice cream sandwich .

Or ActionBarSherlock tabs for full backward compatibility.

+5
source

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

+3
source

Try this . The solution is to use the setDividerDrawable(...) method of the setDividerDrawable(...) class. Then you can define the appearance of the tabs using XML.

0
source

if you want to use the same tab pager as on the Android Android application (for example, 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 an example of a snippet called โ€œtabs and pagerโ€. I think you will like it...:)

0
source

Source: https://habr.com/ru/post/925143/


All Articles