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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -