Jan S. Jan S. - 2 years ago 108
Android Question

Spinner with checkbox items, is it possible?

Spinner with checkbox items, is it possible?

Answer Source

That depends on what you mean.

If you want a true multi-select Spinner, then there's nothing built into Android for that.

Note that you are in control over what goes in the Spinner rows of the drop-down list, except for the radio button. If you want to put checkboxes in your rows, be my guest. It'll look strange, may not work properly with respect to touch events, will not remove the radio buttons (AFAIK), and will be completely unrelated to the Spinner's contents in normal mode. Hence, I can't recommend this approach, but it is doable.

The source code to Spinner is available from the Android open source project, so you are welcome to clone it and develop a MultiSelectSpinner or something.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download