android - AppCompat 库的全息主题

标签 android intellij-idea android-support-library android-holo-everywhere

我已经使用 ActionBarSherlock+HoloEverywhere 组合一段时间了,效果很好。但是,现在是迁移到官方 Google AppCompat 库的时候了。

如果我是对的,最新版本的 HoloEverywhere 应该可以与 AppCompat 一起使用。我可以轻松使用 AppCompat 库,但在旧设备上,它会使用默认的非 Holo 主题,就像它应该的那样。应用 HoloEverywhere 项目时,我收到 Attribute "_____"has already been defined 错误(其中 102 个),它指向两个不同的文件夹,\res\values\abc_attrs.xml\res\values\attrs.xml 在 HoloEverywhere 项目中。

这是一个已知问题,还是我做错了什么?如果是,我应该怎么做?作为记录,我使用的是 IntelliJ IDEA。

最佳答案

正如@langerhans 所指出的,最新的HE 包含ABC,因此无需再次添加ABC 库,删除后,我的问题就解决了。

关于android - AppCompat 库的全息主题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19563120/

相关文章:

android - 如何将 V24 可绘制对象转换为与旧 API 兼容的更低版本

android - 如何在 ConstraintLayout 中设置 View 的最小百分比宽度

android - 使用 findViewById 对明显随机 View 的随机 ClassCastExceptions

android - 如何将消息 TextView 对齐到 snackbar 的中心?

android - 以 Android SDK 14 或更高版本为目标导致我的应用无法显示

Android Firebase 从 DatabaseReference 中删除查询监听器

intellij-idea - 为什么 IntelliJ 的 Markdown 插件中的某些按钮会变灰?

java - IntelliJ 运行自己的 processResources gradle 任务解释

java - IntelliJ 中的 Mapreduce 作业失败

android - DialogFragment/FragmentManager 在旋转时崩溃(使用 MVVMCross):IllegalStateException: Can not perform this action after onSaveInstanceState