之所以style属性不使用android:命名空间preFIX属性、空间、style、preFIX

2023-09-07 15:04:48 作者:孤守丶一座城

在Android的那是什么样式属性不使用android的原因:命名空间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

谢谢!

推荐答案

从的文档:

请注意:style属性不使用android:命名空间preFIX

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

原因风格不使用android命名空间preFIX是因为它是股票XML属性的一部分。

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