Am I missing something? Where's the ComboBox??

Cableguy

Expert
Licensed User
Longtime User
Just Noticed that there seems we have NO combobox in Android?
Why?, Any workaround without creating a extra activity?
 

Rusty

Well-Known Member
Licensed User
Longtime User
ComboBox

You can simulate the "look" of a combobox, by placing and EditText on top of the spinner in the designer. In code, set the EditText to bringtofront. If you leave the spinner pulldown arrow showing, the user can touch the edittext and they can enter the text, if they touch the pull-down arrow, the spinner list will show. The itemclick event you can load the value into the EditText.Text property. Actually looks pretty good and with Erel's updates to the Spinner to support the INPUT_TYPE and HINT's it is even better. This will allow them to enter a value that does not exist within the Spinner list (such as a postal code that doesn't exist within, but the user wishes to use.)
 
Last edited:
Upvote 0
Top