In the era of eclipse, we seldom go to the style file to set the color for the entire application or activity, because even setting does not improve the user's visual effect. But material design claims that people without design skills can make beautiful apps, so let's take a look at the color properties commonly used in Androi5.0 today.
We can define a style, then set the color of each activity or the entire app in this style, and finally set the theme for an activity in the manifest file. The code is as follows:
<StyleName="Apptheme.noactionbar" ><!--status bar color--<ItemName="Colorprimarydark" > @color/colorprimarydark</Item><!--control the color of each control when it is selected--<ItemName="Coloraccent" > @color/coloraccent</Item><!--page background color-<ItemName="Android:windowbackground" > @color/windowbackg</Item><!--bottom navigation bar color--<ItemName="Android:navigationbarcolor" > @color/navigationcolor</Item><!--appbar background color-<ItemName="Android:colorprimary" > @color/colorprimary</Item><!--title color on toolbar- <item name="android:textcolorprimary" > @color/ textcolorprimary</item> <!--The default colors for each control control-- <item name="Android: Colorcontrolnormal "> @color/colorcontrolnormal</item></style>
Finally, one more diagram detailing where each item is set is the color:
Android5.0 Common Color Property descriptions