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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -