android - how to manipulate data in list view that is populated by custom cursor adapter -


I have drawn a list view using a custom cursor adapter, a checkbox And the button below.

  checkbox 1 button 1 checkbox2 button2. . .   

Now I want to navigate to any other activity when click on the button in the list view, now my problem is here when I click on button1 I want to see also the data in the checkbox 1 and similarly for other rows.

Now how am I confused in the way to maintain a sync between the checkboxes and buttons and get click functionality, anyone can please tell me a path .

Thank you Shiva

You can do the following on button 's onClickListener if the button and checkbox share the same original

  boldButton.setOnClickListener (new OnClickListener) {@Override Public Zero Click on (View View) {View parent view = (see) view.getParent (); Checkbox = checkbox = (checkbox) parentView.findViewById (R.id.check); }});   

This will give you the checkbox related to the clicked button .

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -