bit_junky
bit_junky

Reputation: 71

Select multiple items in a listview

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?

Upvotes: 2

Views: 4005

Answers (2)

apals
apals

Reputation: 291

Checkout the

    android:choiceMode

attribute. You can set it to

multipleChoice
multipleChoiceModal
none
singleChoice

Upvotes: 1

Related Questions