开发者

Android, how to implement a *real* multi select spinner? [duplicate]

This question already has answers here: Android Spinner with multiple choice (5 answers) Closed 9 years ago.

Is there a simple way in Android to let a spinner accept multiple selections?

I can't believe I have to implement a class myself for such a basic behaviour... :-(

* UPDATE *

Ok, the solution is to go with ListViews, but, how do I make a ListView behave like a spinner, i.e., when not selected it should开发者_开发问答 be closed, showing only the default or selected item, plus a down arrow to allow user to open the ListView...

Should I implement the "spinner" behaviour from scratch?

* UPDATE UPDATE *

Should I better try to skin a Button as Spinner to create a custom multiselect spinner, or it's better to extend Spinner?


Spinner is for single selection only. You can use a ListView to have multiple selection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜