Skip to content

Changing stl_defaultTabTextSize programmatically #309

Open
@danielandrioli

Description

@danielandrioli

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions