Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How stretch tablayout text by length? #5

Open
Radzhab opened this issue Jun 25, 2015 · 4 comments
Open

Question: How stretch tablayout text by length? #5

Radzhab opened this issue Jun 25, 2015 · 4 comments

Comments

@Radzhab
Copy link

Radzhab commented Jun 25, 2015

screenshot 2

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

@Radzhab
Copy link
Author

Radzhab commented Jun 28, 2015

tabLayout.setTabMode (TabLayout.MODE_SCROLLABLE);

@roy128
Copy link

roy128 commented Aug 3, 2015

👍

@AndroidDeveloperLB
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Radzhab @AndroidDeveloperLB @roy128 and others