-1

I'm trying to find a way to add a checkBox to a ListView layout that can be used to allow the user to select items to be processed. The listview is populated using a cursor via a SimpleCursorAdapter. Can anyone point in the direction on documentation describing how to do such a thing.

1 Answers1

0

You need to manage the selected items in the listview in the getView method manually. At last you will get the selected items. use Arraylist or hashmap as per your need and comfort.

Hope it will help you.

Also refer these links:

Android ListView with Checkboxes: How to capture checked items?

Android ListView

Adding CheckBoxes to a Custom ListView in Android

how to display all checked items from multiple choice listview

Community
  • 1
  • 1
Rushabh Patel
  • 3,052
  • 4
  • 26
  • 58