Can I make the items to show up in alternating colors in spinner control
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.
Yes, you can. If you are following the Spinner Tutorial then you can subclass your adapter (passing a
Listof your items) to produce an alternating color effect:If you’re already defining your own adapter and implementing
getDropDownViewthen you can add something like the above to the end of your method.Edit – updated with slund’s advice. Thank you!