android AutoCompleteTextView white on white Dropdown list

David Homes picture David Homes · Apr 19, 2011 · Viewed 11.9k times · Source

breaking my head here, i have searched online for quite a bit and it seems this was a bug on android before but have not found a solution yet.

I have a AutoCompleteTextView:

autodesignations = (AutoCompleteTextView) findViewById(R.id.main_autocomp);

adapterShapesAuto = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, shapes);

autodesignations.setAdapter(adapterShapes);

the widget works, but the dropdown text is always white text on white background.

I have tried setting the resource for the adapter to several combinations of android's built-in layouts & also my own.

Even pointing it to a TextView resource being also use for a Spinner (which works as expected, black text on white background), but have found no way of making this work, keep getting the same results

Any help?

Answer

androabhay picture androabhay · May 30, 2012

I had this issue . Fixed it using android.R.layout.select_dialog_item for layout.