how to create editable dropdown in android?
The accepted answer helped me except I wanted the drop down to show immediately before the user starts typing (really an editable spinner) and didn't care much about auto completetion, so I let it have the immediate drop down effect by adding:
autoCompleteTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
autoCompleteTextView.showDropDown();
}
})
In case this helps someone.
I have the same problem too. I finally tried 2 means:
Use AutoCompleTextView, it is pretty good.
Use
ListPopupWindow
with aEditText
. I finally used this and I wrote an article about it: http://maogm.com/blog/edittext-with-popuplist-en.html
If editable you should use AutoCompleteTextView.