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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -