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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -