ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing stl_defaultTabTextSize programmatically

danielandrioli opened this issue · comments

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!