astuetz / PagerSlidingTabStrip

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

How to set the select tab text color? #303

Closed tushantong closed 7 years ago

tushantong commented 7 years ago

How to set the select tab text color?

TechnologyMaster commented 7 years ago

@IsSwm use this property in xml file to set select tab text color.

<com.astuetz.PagerSlidingTabStrip android:id="@+id/tabs" app:pstsActivateTextColor="@color/white" app:pstsDeactivateTextColor="@color/black" />

tushantong commented 7 years ago

Thanks.

zhengmingliang commented 7 years ago

It didn't work,I found that the library did not have pstsActivateTextColor and pstsDeactivateTextColor attributes

tushantong commented 7 years ago

我刚才查看了一下的确没有呢,可能他还并没有更新版本吧。

zhengmingliang commented 7 years ago

@IsSwm @astuetz @TechnologyMaster 好吧,先谢谢了,我先自己添加上,过些日子再更新下就行

TechnologyMaster commented 7 years ago

@zhengmingliang @IsSwm I have made some changes in the library. and if possible then talk in English , so i can understand.

tushantong commented 7 years ago

Ok,Thanks.

zhengmingliang commented 7 years ago

@TechnologyMaster please look at this picture,I add the code ,but it didn't work:

app:pstsActivateTextColor="@color/white"
app:pstsDeactivateTextColor="@color/black"
TechnologyMaster commented 7 years ago

wait I will give you code . can you wait ? @zhengmingliang

zhengmingliang commented 7 years ago

sure,thanks a lot @TechnologyMaster