2
我最近將我的操作欄更改爲新的材質設計。我使用新的工具欄小部件來顯示我的活動中的酒吧,但所有關於活動的文字瀏覽都是白色的。我懷疑我的主題中的「android:textColorPrimary」會改變textviews的顏色,但我需要這樣做才能使actiobar標題變成白色。Android Appcompat 21:我所有的textview都是白色
工具欄小工具:
<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>
你檢查什麼顏色「@顏色/ abc_primary_text_material_dark」是工具欄? – 2014-10-31 22:57:14
是的,它是白色的。 – user3907002 2014-10-31 22:59:53
你是說你的TextView的背景顏色是白色的?而不是文字? – 2014-10-31 23:04:11