Kris B
Kris B

Reputation: 3578

Multiselection with text and value

What is the best View to utilize in Android to have a multiselection where you can set a separate string for the text and value? Similar to how a drop down list has a display text value and a selected value. I need to use something like the CheckedTextView, but with the ability to set a text and value, and retrieve the value in code.

Upvotes: 1

Views: 108

Answers (2)

Amos M. Carpenter
Amos M. Carpenter

Reputation: 4958

Alternatively to blessenm's suggestion, you could try appsolut's library - I've found it to be rather versatile and convenient in a variety of situations.

Upvotes: 1

blessanm86
blessanm86

Reputation: 31789

You can use a mulit selection dialog. Have a look at this link. It will explain how to use it.

Upvotes: 0

Related Questions