Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reason why style attribute does not use the android: namespace prefix

Tags:

android

xml

xsd

In Android what is the reason that the style attribute does not use the android: namespace prefix?

See how style doesn't start with android:? Anyone know why?

<TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="I Love Android!"
        style="@android:style/TextAppearance.Large"
        />

http://developer.android.com/guide/topics/ui/themes.html

Thanks!

like image 268
enl8enmentnow Avatar asked Jul 11 '13 21:07

enl8enmentnow


Video Answer


1 Answers

From the documentation:

Note: The style attribute does not use the android: namespace prefix.

The reason style doesn't use the android namespace prefix is because it is part of the stock XML attributes.

like image 87
MrEngineer13 Avatar answered Oct 23 '22 12:10

MrEngineer13