I have searching and testing to set my own image/icon in a Spinner but i get error.
I have alrady with styling set background image but then the spinner icon on the
I Think that xml style was changed
http://developer.android.com/design/building-blocks/spinners.html
I didn't get the answer for changing the spinner image but you can do it..
Set the spinner height and width to 0dp
Create a button in the onClick() listener and call click action of the spinner like this
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
spin.performClick();
}
});
Change the button text to match the spinner text.
public void onItemSelected(AdapterView<?> parent, View v, int position, long id) {
button.setText(items[position]);
}
Now you can change the image of the button easily!
I have the same problem. The only workaround I found is combining the selector icon to the background and then override the background only. Don't use the android:spinnerSelector attribute.