Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutocompleteTextView text is not visible

in my AutoCompleteTextView the text is not visible after I have choosen an item from the suggestions list. I have tried with setTextColor(android.R.color.black) but it doesen't work. I use Theme.Light in Manifest. Has anybody an idea what i can do?

Thanks, in advance

Tiziano

like image 317
Taziano Avatar asked Dec 20 '22 20:12

Taziano


1 Answers

please try

Resources res = getResources(); 
int color = res.getColor(android.R.color.black);
setTextColor(color )

http://sree.cc/google/android/defining-custom-colors-using-xml-in-android

like image 133
Dheeresh Singh Avatar answered Dec 29 '22 09:12

Dheeresh Singh