我正在开发Android 2.1 API 7应用程序。为了实现action bar,我正在使用ActionbarSherlock库。
我已成功将 sherlock 库导入我的项目,并在我的应用程序中创建了操作栏。然后,我想自定义夏洛克动作栏的样式。所以,我定义了以下样式文件:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="ActionBarTheme" parent="android:style/Theme.Sherlock">
<item name="android:background">@drawable/action_bar_background</item>
</style>
</resources>
但我得到了错误:
No resource found that matches the given name "android:style/Theme.Sherlock"
为什么?以及如何设置夏洛克动作栏的样式?