astuetz / PagerSlidingTabStrip

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

can't customize the tabstrip #68

Open shalommelamed opened 10 years ago

shalommelamed commented 10 years ago

I get this error message when I try to customize the tab strip: error: No resource identifier found for attribute 'pstsdividerColor' in package 'com.my.package'

what can I do about that?

austynmahoney commented 10 years ago

Are you using the newest release (v1.0.1)?

Are you adding a custom xmlns to the layout? I forgo it, which is the new way to use attributes from custom views.

I am using this style in my layout and it works just fine:

<style name="Widget.PagerSlidingTabStrip">
    <item name="pstsIndicatorColor">@color/primary_ui</item>
    <item name="pstsDividerColor">@color/tab_divider</item>
    <item name="pstsShouldExpand">true</item>
    <item name="pstsTextAllCaps">false</item>
</style>

Layout

<com.astuetz.PagerSlidingTabStrip
    style="@style/Widget.PagerSlidingTabStrip"
     ... />
dannyroa commented 10 years ago

How do I set the font of the Tab Text?

Chandu1207 commented 9 years ago

error: No resource identifier found for attribute 'pstsDividerColor' in package 'com.naman14.newsstand' How do i solve this error.........?