2016-08-21 41 views
0

我想改变颜色,但不知道怎么回事,请帮我 现在的文本颜色黑,但我想改变颜色为白色 在那里我可以看一下吗?如何改变颜色在动作条标题

<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/toolbar" android:theme="@android:style/Theme.Dialog" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" app:navigationContentDescription="@string/abc_action_bar_up_description" android:background="?attr/colorPrimary" app:navigationIcon="?attr/homeAsUpIndicator" app:title="@string/action_settings" />

screenshot

+1

'机器人:titleTextColor =“#FFFFFF”' – Vucko

+0

在#1已经与[更改操作栏标题颜色(一些答案同样的问题http://stackoverflow.com/questions/16240605/change-action -bar-标题颜色) –

回答

0

文件styles.xml或colors.xml有颜色的ActionBar值。

0

默认情况下,您可以在colors.xml属性colorPrimary中更改它。

<color name="colorPrimary">#FFFFFF</color>