enl8enmentnow
enl8enmentnow

Reputation: 943

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

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!

Upvotes: 9

Views: 1441

Answers (1)

MrEngineer13
MrEngineer13

Reputation: 38856

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.

Upvotes: 3

Related Questions