-1

我正在尝试找到一种将复选框添加到 ListView 布局的方法,该布局可用于允许用户选择要处理的项目。列表视图通过 SimpleCursorAdapter 使用游标填充。任何人都可以指出描述如何做这样事情的文档的方向。

4

1 回答 1

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

于 2012-10-25T13:27:14.063 回答