I used an AutoCompleteTextView in my android app and it is working correctly. The only problem I am facing is that the color of the suggestions is white by default that is i
You should use
setTheme(android.R.style.Theme);
before setContentView
It worked for me :)
Add this to your theme:
<item name="android:autoCompleteTextViewStyle">@style/Widget.AppCompat.AutoCompleteTextView</item>
This a logged bug,
You can find some ways to fix it in the same link.
Auto complete text view bug
Bug solution
Note: This solution will not work with lollipop
I hope it helps...
You can use simple_list_item_1
in ArrayAdapter
,
ArrayAdapter<String> autoadapter=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,cities);
city = (AutoCompleteTextView) findViewById(R.id.location);
Another solution is to quit the style in AndroidManifest.xml
NOTE: This solution does not work with lollipop
OS versions