Skip to content Skip to sidebar Skip to footer

Custom Spinner Background

I try to create a Spinner for choosing a color. The color should display in the Spinner-header. Here is a screenshot: But as you can see, the color don't fill my 9-patch Spinner

Solution 1:

I don't see anything wrong in your code but problem with nine patch image is that, only marked space will get enlarged and you will only get the marked space of image in real use. That is why you are getting space on all sides(which is left unmarked). I think nine patch images are useful for simple backgrounds without much color complexity.


Post a Comment for "Custom Spinner Background"