I recently change my actionbar to the new material design. I use the new toolbar widget to show the bars on my activities but all my textviews on the activity are white. I suspect that the "android:textColorPrimary" from my theme change the colors of the textviews but I need this to make the actiobar title be white.
The toolbar widget:
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/awesome_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="?attr/colorPrimaryDark"
app:theme="@style/Theme.Custom"
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark"/>
Theme.Custom:
<style name="Theme.Custom" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item>
<item name="actionMenuTextColor">@color/abc_primary_text_material_dark</item>
<item name="android:textColorSecondary">@android:color/holo_orange_dark</item>
</style>
Well I found what cause the problem. In AndroidManifest.xml
when I wanted to define on an activity that I want a theme without ActionBar
for use the toolbar I used Theme.AppCompat.NoActionBar
instead of Theme.AppCompat.Light.NoActionBar