tags:

views:

792

answers:

3

Hello!

I am trying to modify the design of Spinner widget. I can change the background, but I can't find a way to change the arrow icon on the right side. Is there a way to do it?

Thanks!

+4  A: 

The whole thing is a single 9 patch png image. I've modified the entire look of spinners before by replacing the images. See this page: http://www.screaming-penguin.com/info/android_drawables/android_drawables.html

Specifically look at btn_dropdown_normal.9, btn_dropdown_pressed.9, btn_dropdown_selected.9 and btn_dropdown_disabled.9

You just need to provide your own versions of those images.

mbaird
That's it? Thank you very much!
LambergaR
How to change this from android.jar.Can you give me any idea?Thank you
RBADS
A: 

How do you replace the images?

A: 

same question for me?

how do your replace the images.. if you use the code

Java Usage example: myMenuItem.setIcon(android.R.drawable.ic_menu_save);
Resource Usage example: android:icon="@android:drawable/ic_menu_save"

provided, the scaling doesnt work, so it just looks like crap :( (sry)

height && width do not fit anymore.. any guesses?

cV2
you could try using a 9-patch image - more info here: http://www.gersic.com/blog.php?id=57
Stev_k