ComboBox is a very useful widget that allows user to type the text in or select from predefined list of options.
While Android comes with Spinner, it is not always what we need. Spinner is a Listbox that only lets user to chose from predefined options.
It is fairly easy to create "sort of" ComboBox however. Here is how:
First of all I take no credit for this blog post. I was looking how to solve this problem and came across this post.
It took me some time to understand what Romain Guy meant. I thought that I would post back to the same thread, but the thread is old now and impossible to post to, so here it is:
Setup your adapter in onCreate() method of your ListActivity:
I came across this inconsistency while developing my Secret Box application.
In my application I have an activity that allows user to change the password. The activity has three EditText’s, one to type existing password and two for the new password and the new password repeat.
The new password and the new password repeat is a custom component which sets the EditText to show dots instead of text in the onCreate() method.
The EditText for the existing password is simply set in the layout file with the android:password attribute.
