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

Changing stl_defaultTabTextSize programmatically #309

Open
danielandrioli opened this issue Dec 31, 2020 · 0 comments
Open

Changing stl_defaultTabTextSize programmatically #309

danielandrioli opened this issue Dec 31, 2020 · 0 comments

Comments

@danielandrioli
Copy link

Hi! First of all, thanks for the library.

This smartab is working fine for me, but, if the width size of the device is small, the title size doesn't fit in the screen and this problem happens:
https://i.imgur.com/xDESCPM.gif

As you can see, both tabs don't fit entirely on the screen.
I can solve this problem if I change stl_defaultTabTextSize to 16sp. However, 16sp is not the desired size and it's too small for tablets and big phones.

In a bigger device, both tabs keep completely on the screen while switching them.

So I have a question: how can I change stl_defaultTabTextSize programmatically? This way I can set size according to the screen width. Is there another way to solve this problem?
Thanks!

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

1 participant