
In that image ..the button that shows the settings is like a spinner that dropsdown …So I want to make such a spinner that dropsdown..
Thanks in advance..
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.
I would guess that your example wasn’t implemented as a Spinner, since there are only 2 items you don’t get much benifit from using a Spinner instead of just making your own “dropdown” layout, and simply making it visible upon the press of the button.
If you have relatively few things that you want in your drop down I would suggest just going that route and staying away from Spinner for this one.
If you have a long list of data that the user will be choosing from though and you are wanting to make it into a dropdown (similar to combo box etc.) you could probably do it by overriding Spinner, to change the way that onDraw() works to display inline with the View in its parent, rather than popping out. Though honestly I think the stock spinner would provide better user experience than this.