I am using design support to create tabs. I am also using ViewPager for swipable tabs.
ViewPager
Now, I don\'t know how to use only icons instead of texts in tabs
In TabLayout, setting icon is easy:
TabLayout
getPageTitle(position) should return null (if you don't want title to show).
getPageTitle(position)
null
Next :
tabLayout.getTabAt(0).setIcon(resId); tabLayout.getTabAt(1).setIcon(resId); ......