【发布时间】:2013-01-02 06:03:16
【问题描述】:
我在使用 SherlockActionBar 时遇到了一个奇怪的问题。
我需要自定义主题Theme.Sherlock.Light.DarkActionBar。
如果我在 AndroidManifest 中设置主题 Theme.Sherlock.Light.DarkActionBar,一切正常(姜饼和 ICS 也是)。
但是,如果我创建自己的主题(继承自 Theme.Sherlock.Light.DarkActionBar),它将不适用于具有 ICS+ 的设备。即使自定义样式为空如下:
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="customTheme" parent="Theme.Sherlock.Light.DarkActionBar" >
</style>
</resources>
在应用程序节点的清单中:
android:theme="@style/customTheme"
这在 Gingerbread 上没问题,但在 ICS+ 上应用了 Theme.Sherlock.Light。有什么解决办法吗?
【问题讨论】:
-
你有没有 values-v11 文件夹?
-
是的,这是个问题,我忘记了我有与该主题同名的 v-11 文件夹。谢谢你艾哈迈德。
标签: android styles android-actionbar actionbarsherlock android-theme