2016-08-21 7 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の"' StackOverflowので – Vucko

+0

が既に[変更アクションバーのタイトルの色](でいくつかの答えと同じ質問を持っているhttp://stackoverflow.com/questions/16240605/change-action -bar-title-color) –

答えて

0

ファイルのstyles.xmlやcolors.xmlアクションバーの色と値を持っています。

0

デフォルトでは、colors.xml属性colorPrimaryで変更できます。

<color name="colorPrimary">#FFFFFF</color> 
関連する問題