Is there any way to set systemUI background changed by the activity in android? -
how set attribute in app, change system ui background when open app; picture?
place values-v21/styles.xml, android 5.0 , :
<resources> <!-- base application theme. --> <style name="apptheme" parent="theme.appcompat.light"> <item name="colorprimary">@color/color_primary</item> <item name="colorprimarydark">@color/color_secondary</item> <item name="coloraccent">@color/color_accent</item> <item name="android:statusbarcolor">@color/color_primary</item> </style> </resources>
and in colors.xml file :
<?xml version="1.0" encoding="utf-8"?> <resources> <item name="color_primary" type="color">#yourcolor</item> <item name="color_secondary" type="color">#yourcolor</item> <item name="color_accent" type="color">#yourcolor</item> </resources>
Comments
Post a Comment