Select multiple items from a list

advertisements

I have a listview which is connected to a cursor adapter. The user should be able to select multiple items from the listview and delete them when the user clicks a button below the listview. Actionbar is not involved in the app. How can I achieve this?


Checkout the

    android:choiceMode

attribute. You can set it to

multipleChoice
multipleChoiceModal
none
singleChoice