People, why can't I change the colors of the Theme.Holo.Light theme, but at the same time the Theme.Material.Light theme changes with the same attributes?

Here is the code:

<resources> <!-- Base application theme. --> <style name="AppTheme" parent="android:Theme.Material.Light"> <!-- Customize your theme here. --> <item name="android:colorPrimary">@color/colorPrimary</item> <item name="android:colorPrimaryDark">@color/colorPrimaryDark</item> <item name="android:colorAccent">@color/colorAccent</item> <item name="android:colorBackground">@color/colorBackground</item> </style> 

and in another topic with the same attributes no longer works:

 <!-- Base application theme. --> <style name="AppTheme" parent="android:Theme.Holo.Light"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="colorBackground">@color/colorBackground</item> </style> 

"android:" in the second example, I was prompted to remove the IDE, but it still does not work, help!

Closed due to the fact that the participants are off topic : , pavel , Denis , user194374, Bald 29 Aug '16 at 6:31 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - YuriSPb, pavel, Denis, Spirit of the community, Bald
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • You do not have the same attributes, but different. More precisely - in the second case there is no namespace - YuriySPb

1 answer 1

Try instead of the 2nd option to write like this:

 <style name="AppTheme" parent="@android:style/Theme.Holo.Light"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> <item name="colorBackground">@color/colorBackground</item> </style> 
  • the same thing, the fact is that the theme works, not all my attributes work, which in <item> </ item> - Maxgmer
  • for example, the color of the action bar has not changed, although here it should change to mine. - Maxgmer