Вам нужно захватить элементы, по которым щелкнули, а затем выполнить итерацию по ним, чтобы найти отмеченные элементы следующим образом:
// Using a List to hold the IDs, but could use an array.
List<Integer> checkedIDs = new ArrayList<Integer>();
// Get all of the items that have been clicked - either on or off
final SparseBooleanArray checkedItems = lView.getCheckedItemPositions();
for (int i = 0; i < checkedItems.size(); i++){
// And this tells us the item status at the above position
final boolean isChecked = checkedItems.valueAt(i);
if (isChecked){
// This tells us the item position we are looking at
final int position = checkedItems.keyAt(i);
// Put the value of the id in our list
checkedIDs.put(position);
}
}
Примечание getCheckedItemPositions () получает элементы, которыебыли проверены пользователем независимо от того, оставлен ли флажок установленным или нет.