开发者

Android ListView with custom row (RadioButton and 3 TextView)

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜