i am using a listview in a class which extends ListActivity but my row have a radio button and 3 textviews.
If i delete radiobutton from it, the metod onListItemClick(ListView l, View v, int position, long id)
works well and i see what item have been selected but with the radiobutton i can check what item have selected.
How i can resolve this? I am using a开发者_StackOverflow中文版 custom adapter for build listview
I think you need multi selection in the ListView that is why you're trying achieve that using RadioButton, if so, instead of RadioButton,try Checkbox, that would work great
and this tutorial will guide you how to accomplish that http://appfulcrum.com/2010/09/12/listview-example-3-simple-multiple-selection-checkboxes/
精彩评论