Hi,

I'm having trouble changing the drawable resource used to draw the
horizontal divider in the spinners popup list.

If I do the following in styles.xml, I am able to change every part of
the popup list except the horizontal divider graphic. I'm even able to
change the divider height!

<resources>
        <style name="MyTheme">
            <item name="android:spinnerDropDownItemStyle">@style/
Widget.DropDownItem.Spinner</item>
            <item name="android:listViewStyle">@style/Widget.ListView</item>
            <item name="android:alertDialogStyle">@style/AlertDialog</item>
         </style>


        <style name="Widget.DropDownItem.Spinner" parent="@android:style/
Widget.DropDownItem.Spinner">
                <item name="android:checkMark">@drawable/radio_button</item>
                <item name="android:textStyle">bold</item>
                <item name="android:textColor">@color/white</item>
        </style>

        <style name="Widget.ListView" parent="android:Widget.ListView">
                <item name="android:listSelector">@drawable/
my_list_selector_background</item>
                <item name="android:horizontalDivider">@drawable/my_divider</
item>
                <item name="android:dividerHeight">10dip</item>
        </style>

        <style name="AlertDialog" parent="@android:style/AlertDialog">
          <item name="android:topDark">@drawable/my_popup_top_dark</item>
          <item name="android:bottomBright">@drawable/my_popup_bottom_dark</
item>
        </style>
</resources>

No matter what I try I can't stop it from using the default in-built
divider graphic.

Does anyone know how to change the horizontal divider graphic specific
to the spinner widgets popup list?

Cheers,
Nilz.

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

Reply via email to