无法更改ActionBar Sherlock的背景

时间:2013-08-14 10:10:00

标签: android background styles actionbarsherlock

ActionBar SherlockViewPagerIndicator here {。}}。{/ p>

我正在尝试更改ActionBar背景,但它什么也没做。

这是我的代码:

的AndroidManifest.xml

<application
        //...
        android:theme="@style/StyledIndicators" >

styles_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>

你知道问题出在哪里吗?

0 个答案:

没有答案