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 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!