android - Custom Drag Sort Listview with Radiobutton -
i have dslv custom adapter has 2 textviews , radiobutton. want radiobutton of particular row setchecked(true) when row clicked. used below mentioned code.
public onitemclicklistener listclk = new onitemclicklistener() { @override public void onitemclick(adapterview<?> arg0, view arg1, int arg2,long arg3) { if(!rad.ischecked()) { rad.setchecked(true); }else{ rad.setchecked(false); } } };
but not working properly. please help!!...thanks
finally problem got sorted out adding ..
@override public int getviewtypecount() { // todo auto-generated method stub return namelist.size(); } @override public int getitemviewtype(int position) { // todo auto-generated method stub return position; }
after getview().
Comments
Post a Comment