android - How can i select whole listitems when clicking either on checkbox or anywhere in the line -


i have listview checkbox,now want check/uncheck listitems clicking anywhere on listitems eithe on checkbox or on image of listitems or anywhere in listitem lines. pease me out??

put onitemclicklistener.

listview.setonitemclicklistener(new onitemclicklistener() {             public void onitemclick(adapterview<?> parent, view view, int position, long id) {                 checkbox cb = (checkbox) view.findviewbyid(r.id.listviewitemcb);                     cb.setchecked(true);                     // ... other stuff             }             }); 

Comments

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -