在android风格的XML中@@ android

时间:2014-11-27 15:46:59

标签: android android-layout android-resources android-styles

在android项目中,在编写XML资源时,我经常看到人们将android的系统资源称为:

@android:attribute type/ attribute name

@*android:attribute type/ attribute name

有人可以详细说明*标志的作用吗?

1 个答案:

答案 0 :(得分:0)

不确定,但asterix经常定义通配符。在Android网站上,以下页面http://developer.android.com/guide/topics/manifest/data-element.html表示asterix:

  • 'android:pathPattern' - 表示通配符
  • 'android:mimeTypeIndicate' - 可以使用任何子类型。

在W3Schools网站上关于XPath,它说 @ *匹配任何属性节点 http://www.w3schools.com/xpath/xpath_syntax.asp

相关问题