The*_*imp 5 android android-studio android-styles
我最近将我的 Android 项目从 eclipse 导入到 Android Studio。我有 3 个 styles.xml 文件:styles.xml、styles.xml (v11) 和 styles.xml (v14)。我不知道那是如何以及何时发生的。
styles.xml (v11) 包括:
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
Run Code Online (Sandbox Code Playgroud)
styles.xml (v14) 包括:
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
Run Code Online (Sandbox Code Playgroud)
我想知道它们为什么在这里以及我是否可以删除 v11 和 v14 xml 文件。
它们的工作原理与您原来的相同styles.xml,但它们有resource qualifiers。这意味着它们只有在满足限定符时才会被使用- 在本例中,当 API 版本为 11+ 或 14+ 时。
是的- 如果它们是空的,那么就不会有影响。
进一步阅读
如果您想了解更多信息,请查看 Google 的本指南
| 归档时间: |
|
| 查看次数: |
5249 次 |
| 最近记录: |