Question: How stretch tablayout text by length? #5
Radzhab opened this issue · 3 comments
Radzhab commented
Suleiman19 commented
Try using
tabLayout.setTabMode (TabLayout.MODE_SCROLLABLE);
This allows all Tabs' text to take the required width. So the obvious trade-off is the entire TabLayout will be scrollable.
Radzhab commented
thx man)
Suleiman19 commented
Glad you got it done 👍