我ActionBar Sherlock
和这里ViewPagerIndicator
一样。
我正在尝试更改ActionBar
背景,但它什么也没做。
这是我的代码:
AndroidManifest.xml
<application
//...
android:theme="@style/StyledIndicators" >
样式_mystyle.xml
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="Theme.Mystyle" parent="@style/Theme.Sherlock.Light">
<item name="actionBarItemBackground">@drawable/selectable_background_mystyle</item>
<item name="popupMenuStyle">@style/PopupMenu.Mystyle</item>
<item name="dropDownListViewStyle">@style/DropDownListView.Mystyle</item>
<item name="actionBarTabStyle">@style/ActionBarTabStyle.Mystyle</item>
<item name="actionDropDownStyle">@style/DropDownNav.Mystyle</item>
<item name="actionBarStyle">@style/ActionBar.Solid.Mystyle</item>
<item name="android:actionBarStyle">@style/ActionBar.Solid.Mystyle</item>
<item name="actionModeBackground">@drawable/cab_background_top_mystyle</item>
<item name="actionModeSplitBackground">@drawable/cab_background_bottom_mystyle</item>
<item name="actionModeCloseButtonStyle">@style/ActionButton.CloseMode.Mystyle</item>
</style>
<style name="ActionBar.Solid.Mystyle" parent="@style/Widget.Sherlock.Light.ActionBar">
<item name="android:background">@drawable/background_actionbar</item>
<item name="background">@drawable/background_actionbar</item>
</style>
//more styles
<style name="StyledIndicators" parent="@style/Theme.Mystyle">
//some items for ViewPagerIndicator
</style>
<resources>
background_actionbar.xml
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<gradient
android:angle="90"
android:endColor="#DD84A4E8"
android:startColor="#7784A4E8" />
</shape>
你知道问题出在哪里吗?