Could you please tell me how to do a spinner that look like a list item that can be expanded?
I need something like shown in the figure given.! While clicking the arrow image the spinner pops up and the text is hide.
I use the following code.
spin.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onItemSelected(AdapterView parent, View view, int position, long id) {
// hide selection text
((TextView)view).setText(null);
// if you want you can change background here
}
public void onNothingSelected(AdapterView parent) {
}
});
But then also there is flashing of text above the arrow background image for a second.
Any suggestion to avoid this?

try this