astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

psts not working? #106

Closed ghost closed 10 years ago

ghost commented 10 years ago

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/com.astuetz" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white"

    <com.astuetz.PagerSlidingTabStrip
            android:id="@+id/tabs"
            android:layout_gravity="top"
            android:layout_marginTop="50dp"
            android:layout_width="match_parent"
            android:layout_height="48dip"
            android:background="@drawable/background_tabs" 
    app:pstsTabSwitch="true"
    app:pstsActivateTextColor="#FF666666"
    app:pstsDeactivateTextColor="#FFCCCCCC" 
    app:pstsTextAllCaps="false" 
                >

I just using this as a library. It looks like this is not working. Textallcaps is always true, and the Active/Deactive not working too.

ghost commented 10 years ago

Finally I added the attrs that was missed from the original code, and now it is working!