ActionBarSherlock微调项目背景被忽略

时间:2012-10-16 12:10:50

标签: android styles spinner actionbarsherlock

我有一个共享操作项,无论我做什么,微调器似乎都不尊重我设置的样式。我在这里使用了样式生成器http://jgilfelt.github.com/android-actionbarstylegenerator/

以下是我的主题文件的片段

<style name="Theme.Next" parent="@style/Theme.Sherlock.Light.DarkActionBar">
    <item name="actionBarItemBackground">@drawable/selectable_background_next</item>
    <item name="popupMenuStyle">@style/next_PopupMenu</item>
    <item name="dropDownListViewStyle">@style/next_DropDownListView</item>
    <item name="actionBarTabStyle">@style/next_ActionBarTabStyle</item>
    <item name="actionDropDownStyle">@style/next_DropDownNav</item>
    <item name="actionBarStyle">@style/next_solid_ActionBar</item>

    <item name="android:actionBarItemBackground">@drawable/selectable_background_next</item>
    <item name="android:popupMenuStyle">@style/next_PopupMenu</item>
    <item name="android:dropDownListViewStyle">@style/next_DropDownListView</item>
    <item name="android:actionBarTabStyle">@style/next_ActionBarTabStyle</item>
    <item name="android:actionDropDownStyle">@style/next_DropDownNav</item>

    <!-- Light.DarkActionBar specific -->
    <item name="actionBarWidgetTheme">@style/Theme.next.widget</item>
    <item name="android:actionBarWidgetTheme">@style/Theme.next.widget</item>

</style>

<style name="next_DropDownNav" parent="@style/Widget.Sherlock.Spinner.DropDown.ActionBar">
        <item name="background">@drawable/spinner_background_ab_next</item>

        <item name="android:background">@drawable/spinner_background_ab_next</item>
        <item name="android:popupBackground">@drawable/menu_dropdown_panel_next</item>
        <item name="android:dropDownSelector">@drawable/selectable_background_next</item>
    </style>

<!-- this style is only referenced in a Light.DarkActionBar based theme -->
    <style name="Theme.next.widget" parent="@style/Theme.Sherlock">
        <item name="popupMenuStyle">@style/next_PopupMenu</item>
        <item name="dropDownListViewStyle">@style/next_DropDownListView</item>

        <item name="android:popupMenuStyle">@style/next_PopupMenu</item>
        <item name="android:dropDownListViewStyle">@style/next_DropDownListView</item>
    </style>

spinner_background_ab_next指向具有适当自定义drawable的选择器。无论我改变什么,共享微调器总是使用默认的ICS蓝色。有人遇到过这个问题吗?

0 个答案:

没有答案