The reason why the style attribute does not use the android: namespace space prefix

On Android, the reason the style attribute doesn't use the android: namespace space prefix?

See how style doesn't start with android: :? Does 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!

+6
source share
1 answer

In the documentation:

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

The reason style does not use the android namespace prefix because it is part of the stock XML attributes.

+5
source

Source: https://habr.com/ru/post/949272/


All Articles