Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Tab text color is black #45

Closed
Route-7 opened this issue May 28, 2015 · 3 comments
Closed

Tab text color is black #45

Route-7 opened this issue May 28, 2015 · 3 comments

Comments

@Route-7
Copy link

Route-7 commented May 28, 2015

How do i change the tab text color? Because currently the tab text color is black and i cannot really see it.

@Route-7 Route-7 closed this as completed May 28, 2015
@Route-7 Route-7 reopened this May 28, 2015
@Hzawa
Copy link

Hzawa commented May 28, 2015

Someone correct me if I'm wrong but I believe the text color is pulled from textColorPrimary, in your styles.xml. Try changing that to whatever color you need. Alternatively you can use the custom tab indicator option that's documented in the README.

@Route-7
Copy link
Author

Route-7 commented May 28, 2015

Alright, thanks for the answer I will try that as soon as I can and let u know what happens :)

@zboing
Copy link

zboing commented Apr 19, 2019

This is not a good approach because the color of the settings and popup overflow menu items will be white color text to white elements (not visible to the user).
A proper use case will be to leave the option from styles.xml unchanged
<item name="android:textColorPrimary">@android:color/black</item>
and add the line
app:pstsTabTextColor="@android:color/white"
to com.astuetz.PagerSlidingTabStrip component from material_view_pager_pagertitlestrip_newstand.xml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants