Reputation: 71
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
Reputation: 1105
can you please look at below blogs :
1. http://www.quicktips.in/how-to-create-multi-select-listview-android-with-custom-adapter/
2. http://dharmendra4android.blogspot.in/2012/10/multi-selection-listview-example-in.html
Upvotes: 0
Reputation: 291
Checkout the
android:choiceMode
attribute. You can set it to
multipleChoice
multipleChoiceModal
none
singleChoice
Upvotes: 1