之所以style属性不使用android:命名空间preFIX [英] Reason why style attribute does not use the android: namespace prefix

查看:176
本文介绍了之所以style属性不使用android:命名空间preFIX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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.

这篇关于之所以style属性不使用android:命名空间preFIX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆