【问题标题】:@*android in android style XML@*android 在 android 样式 XML
【发布时间】:2014-11-27 15:46:59
【问题描述】:

在一个android项目中,在写XML资源的时候,经常看到有人把android的系统资源称为:

@android:attribute type/ attribute name

@*android:attribute type/ attribute name

谁能详细说明* 标志的作用?

【问题讨论】:

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


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2011-01-06
      • 2014-04-04
      • 1970-01-01
      • 2021-07-01
      • 2011-08-08
      • 2016-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多