【问题标题】:Is it possible to write code in one version of styles.xml and have the other versions reference that code?是否可以在一个版本的 styles.xml 中编写代码并让其他版本引用该代码?
【发布时间】:2012-12-26 20:17:57
【问题描述】:

如果我正在开发一个可以使用任何版本的 styles.xml 的应用程序,是否可以在该文件的一个版本中编写代码并让其他版本引用该代码,而不必多次重复该代码?

我使用的是Eclipse,它有多个版本的styles.xml:

res -> 值 -> styles.xml

res -> values-v11 -> styles.xml

res -> values-v14 -> styles.xml

【问题讨论】:

    标签: android xml styles


    【解决方案1】:

    是的,可以访问在较低 api 级别版本中声明的内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-04
      • 2022-01-03
      • 1970-01-01
      • 2023-01-08
      • 2010-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多