Thursday, July 5, 2012

[android-developers] Re: how to change background of an overflow menuitem

ok, i found a solution for my problem: link to a post in the ActionBarSherlock google group


i've overseen this entry: android:actionBarWidgetTheme in the Theme.Holo.Light.DarkActionBar theme.

now all i had to do is define a theme that overrides Theme.Holo with one style in it: <item name="android:dropDownListViewStyle">@style/myDropDownListView</item> and point to this theme instead.

    <!-- theme referenced by actionBarWidgetTehme style -->
    <style name="Theme.DropDown.Dark" parent="android:style/Theme.Holo">
        <item name="android:dropDownListViewStyle">@style/myDropDownListView</item>
    </style>

    <!-- my main theme -->
    <style name="DarkActionBarRedActionMode" parent="android:style/Theme.Holo.Light.DarkActionBar">
        <item name="android:actionBarWidgetTheme">@style/Theme.DropDown.Dark</item>
    </style>

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment