I want to change the color , but do not know how, please help me Now the text color black, but i want to change the color to white where i can read about it ?
<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" />
文件styles.xml或colors.xml具有ActionBar的颜色值。
默认情况下,您可以在colors.xml
属性colorPrimary
中colors.xml
colorPrimary
。
<color name="colorPrimary">#FFFFFF</color>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.