我正在使用ActionBarSherlock
,并且希望为其下方的ActionBar和内容视图使用自定义背景。当我尝试这一点,背景填充整个屏幕,其中包括动作条:错误:找不到与给定名称匹配的资源:attr'abBackground'
<style name="MyTheme" parent="@style/Theme.Sherlock">
<item name="android:windowBackground">@drawable/background</item>
</style>
所以,从this answer,我试图添加abBackground
的主题:
<style name="MyTheme" parent="@style/Theme.Sherlock">
<item name="android:windowBackground">@drawable/background</item>
<item name="abBackground">@drawable/bg_button_idle</item>
</style>
但是,我得到的错误
Error: No resource found that matches the given name: attr 'abBackground'.
这是为什么,我该如何解决?
您还需要一个操作栏风格的'android:background'项目以及ICS +。 – 2012-08-03 17:12:45