0

I've created a dynamic ListView with TextViews and Spinners, using a SimpleAdapter and a ViewBinder.

How can I access a Spinner value after the user had selected it?

I think I need to create references to the spinners inside my ViewBinder, but I don't know how. I tried this but it's not working:

public boolean setViewValue(View view, Object data,
                                String textRepresentation) {

mySpinner = (Spinner) view;

}
user
  • 86,916
  • 18
  • 197
  • 190
Abramodj
  • 5,709
  • 9
  • 49
  • 75

1 Answers1

1

You should try setOnItemClickListener(AdapterView.OnItemClickListener l)

Also look at this.

Hope this helps.

Community
  • 1
  • 1
Harry Joy
  • 58,650
  • 30
  • 162
  • 207