Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What property controls Spinner dropdown background?

I have a custom theme created with this generator. It has a custom style for Spinners which I don't like. I want to change the background drawable but I can't seem to figure out which property controls this.

This is what the themed version looks like

enter image description here

And here is what it will look like when using the Holo.Light theme.

enter image description here

Notice the dark gray lines around the dropdown list in the first (themed) image. This is what I want to get rid of. What property controls this? I want them to match the default.

Also, what controls the vertical aligment of the dropdown list? As you can see, it is overlapping with the Spinner in the first image (the line under it isn't visible as it is in the second image).

like image 966
MikkoP Avatar asked Dec 25 '22 16:12

MikkoP


1 Answers

The attribute you want is android:popupBackground on the Spinner element.

If you look closely, the holo popup also overlaps the spinner some, but there is a bunch of padding for the drop shadow, so it looks good.

However, you can use android:dropDownVerticalOffset on the Spinner element to adjust it.

like image 105
Tenfour04 Avatar answered Jan 15 '23 01:01

Tenfour04