Skip to content Skip to sidebar Skip to footer

How To Change Spinner Background Color?

I have prepared custom spinner with text color and text size using adapter.By default spinner background color while ,here i want to change white to some other color or image? Is t

Solution 1:

<Spinner android:id="@+id/spinner"
         ...
         android:background="#YOUR_HEXA_COLOR"/>

This didn't work for you?

Else if you are using a custom Spinner you can have it from this Blog.

Solution 2:

I made my custom spinner by totally write a new view.(A LinearLayout contains several item) When click the "Spinner Button" I add the custom view to the screen, just pretend to be a spinner, then I can do a lot of custom things on it. :)

Post a Comment for "How To Change Spinner Background Color?"