android - Setting name attributes in material design -


i have simple question, don't it. when set new style under material design, use parent styles follow:

<style name="apptheme.base" parent="base.theme.appcompat.light">     <item name="colorprimary">@color/colorprimary</item>     <item name="colorprimarydark">@color/colorprimarydark</item>     <item name="coloraccent">@color/coloraccent</item> </style> 

however, in tutorials, saw insert reference "android:" attribute, e.g.:

<item name="android:colorprimarydark">@color/colorprimarydark</item> 

i know latter should used referencing every attribute in android, don't understand why in case omitted , not.

it omitted if using android v7 support library. in case use 1 of theme.appcompat themes, instead of android theme. take @ maintaining compatibility.


Comments