在android项目中,在编写XML资源时,我经常看到人们将android的系统资源称为:
@android:attribute type/ attribute name
和
@*android:attribute type/ attribute name
有人可以详细说明*
标志的作用吗?
答案 0 :(得分:0)
不确定,但asterix经常定义通配符。在Android网站上,以下页面http://developer.android.com/guide/topics/manifest/data-element.html表示asterix:
在W3Schools网站上关于XPath,它说 @ *匹配任何属性节点 http://www.w3schools.com/xpath/xpath_syntax.asp