【发布时间】:2012-02-16 11:29:16
【问题描述】:
我正在开发 Android 2.1 API 7 应用程序。为了实现action bar,我使用ActionbarSherlock library。
我已成功将 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"
为什么?以及如何设置夏洛克动作栏的样式??
【问题讨论】:
-
我认为 android:style/Theme.Sherlock 它不在 Android jar 中。
标签: android android-layout android-intent android-widget actionbarsherlock