android - Omit "@" and "style" from Style Parent Attribute? -
the style resource documentation shows syntax of parent attribute of style definition as:
parent="@[package:]style/style_to_inherit" the resource parser more tolerant. "@" , "style" both optional. understandable given value must reference style. each of following forms accepted , seem equivalent.
<resources> <style name="themea" parent="@android:style/theme.holo"/> <style name="themeb" parent="android:style/theme.holo"/> <style name="themec" parent="android:theme.holo"/> <!-- auto completion supported --> <style name="themed" parent="@style/themea"/> <style name="themee" parent="style/themea"/> <style name="themef" parent="themea"/> <!-- auto completion supported --> </resources> android studio 1.3 applies auto-completion forms not contain "@" , "style", making use more convenient. there reason why "@" , "style" should not omitted parent declaration?
Comments
Post a Comment