Spinner with checkbox items, is it possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
Spinnerrows 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 theSpinner‘s contents in normal mode. Hence, I can’t recommend this approach, but it is doable.The source code to
Spinneris available from the Android open source project, so you are welcome to clone it and develop aMultiSelectSpinneror something.