Skip to content
New issue

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

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

Already on GitHub? # to your account

How to automatically expand the width of the tab? #307

Open
Hudhud opened this issue May 23, 2017 · 1 comment
Open

How to automatically expand the width of the tab? #307

Hudhud opened this issue May 23, 2017 · 1 comment

Comments

@Hudhud
Copy link

Hudhud commented May 23, 2017

Hello

How do I let the tabs get expanded if the string in the tab is too long?
This is how it looks like now:
18678987_10154327212666199_1691877758_n

If the string is too long, some of it doesn't appear. The weird thing is that it worked on Android 6.0, but now I am running on Android 7.0 (phone and emulator), and this happened. How to I fix it?

This is my XML code for the PagerSlidingTabStrip:

    <com.astuetz.PagerSlidingTabStrip
        android:id="@+id/tabs"
        app:pstsShouldExpand="true"
        app:pstsTextAllCaps="true"
        app:pstsIndicatorColor="#8b4513"
        android:layout_width="match_parent"
        android:background="#ffffff"
        android:layout_height="48dp" />
@newstarbka
Copy link

use pstsTabPaddingLeftRight attibute

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

No branches or pull requests

2 participants