-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Can't change Tabs Title Color in xml or Java Object #22
Comments
I managed to do so by implementing my my_tabs.xml and then setting in it android:textColor="@android:color/whatever" and app:pstsTextColorSelected="@color/whichever" |
Ok, thanks for quickly response! |
Also, if you want to change tabs background, you should do this: app:pstsTabBackground="@color/your_color" |
Is possible to change TabBackground color via mViewPager.getPagerTitleStrip().setTabBackground(color) ? |
Yes, you can! :-) |
So I'm doing something wrong i think because I'm trying to use that method on FragmentStatePagerAdapter inside method setPrimaryItem. In sample you set there a color of image background |
That's where I tried it, and it worked. Did you also put a tabBackgrouns in XML? Could there be a clash of definitions here between XML and java code? |
Hi!
I need to change tabs titles color from ViewPager xml file or Java object without change color in styles.
How i can do this?
The text was updated successfully, but these errors were encountered: