hmkcode / Android

Android related examples
3.52k stars 3.41k forks source link

Question: How stretch tablayout text by length? #5

Open Radzhab opened 9 years ago

Radzhab commented 9 years ago

screenshot 2

i use similar project. But cannot understand how my text not full showing

Radzhab commented 9 years ago
tabLayout.setTabMode (TabLayout.MODE_SCROLLABLE);
roy128 commented 9 years ago

:+1:

AndroidDeveloperLB commented 9 years ago

Also, if the text/icon is too small, yet there is a lot of space (like when switching to horizontal orientation), you can use :

    tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);