What property controls the Spinner popup?

I have a custom theme created using this generator . He has his own style for Spinners, which I don't like. I want to change the wallpaper, but I cannot figure out which property controls this.

This is what corresponds to the thematic version.

enter image description here

And this is how it will look when using the Holo.Light theme.

enter image description here

Notice the dark gray lines around the drop-down list in the first (thematic) image. This is what I want to get rid of. What property controls this? I want them to conform to the standard.

Also, what controls the vertical offset of the drop down list? As you can see, it overlaps with Spinner in the first image (the line below it is not visible, as in the second image).

+4
source share
4 answers

The attribute you want is android:popupBackgroundin the Spinner element.

If you look closely, the holographic popup also overlays the row, but there are tons of indentation for the shadow, so it looks good.

However, you can use android:dropDownVerticalOffsetthe Spinner element to configure it.

+9
source

. Android Holo.

, Theme.xml...

<item name="android:spinnerStyle">@style/SpinnerCustom</item>
<item name="android:spinnerDropDownItemStyle">@style/SpinnerDropDownItemCustom</item>
<item name="android:popupMenuStyle">@style/PopupMenu.Custom</item>
<item name="android:dropDownListViewStyle">@style/DropDownListView.Custom</item>
<item name="android:actionDropDownStyle">@style/DropDownNav.Custom</item>

..., , Holo.Light spinner.

+1

You need to change the spinnertheme parent to android: Widget.Holo.Light.Spinner

<style name="SpinnerTHEME" parent="android:Widget.Holo.Light.Spinner">
0
source
<style name="spinner_style" parent="android:Widget.Holo.Light.Spinner">
       <item name="android:paddingLeft">@dimen/ten_dp</item>
       <item name="android:paddingRight">@dimen/ten_dp</item>
</style>
0
source

All Articles