Good day. Can you please tell me how to adjust the colorPrimaryDark color for each layer? I tried using style="@style/Orange" and android:theme="@style/Orange" , but it doesn't work that way.

 <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat"> <!-- Customize your theme here. --> <item name="android:windowBackground">@color/textLight</item> <item name="actionBarSize">@dimen/action_bar</item> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> <style name="Orange" parent="AppTheme"> <item name="android:colorPrimaryDark">@color/colorTopBarMenuDark</item> </style> </resources> 

    1 answer 1

    The colors of the scheme are described without the prefix android:

     <item name="colorPrimaryDark">@color/colorTopBarMenuDark</item> 

    And just in case, let me remind you that the topic is prescribed in the manifesto:

     <application .... android:theme="@style/Orange">