I create app from the template with Design Support Library and gonna change the color of the android.support.v7.widget.Toolbar
to pure red.
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#ff0000"
app:popupTheme="@style/AppTheme.PopupOverlay" />
It works, but color is D62628 instead FF0000. What's wrong?
Update: Ok, I try to do it via colorPrimary. Set color in colors.xml
:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#ffff0000</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
The same history: