Paul Hunnisett
Paul Hunnisett

Reputation: 908

AutoCompleteTextView does not properly display text with ActionBarSherlock theme

I'm using ActionBarSherlock with the Theme.Sherlock.Light.DarkActionBar theme and the text in my AutoCompleteTextView is so the same colour as the background. I have tried calling setTextColour() and passing in the int referring to Black, but it doesn't seem to make any difference.

Is this a known bug? Or an unknown bug? Or am I just missing something?

Here's a screenshot showing how it looks when selected - which suggests it's not jut a case of being the same colour as the background:

screenshot of the problem - with text selected

Upvotes: 3

Views: 1088

Answers (2)

mraviator
mraviator

Reputation: 4074

My issue seems unrelated to ABS. I came across the solution here:

http://code.google.com/p/android/issues/detail?id=5237

Using android.R.layout.simple_dropdown_item_1line instead of android.R.layout.simple_list_item_1 worked for me in all Android versions.

Upvotes: 3

Jake Wharton
Jake Wharton

Reputation: 76125

Are you using getSupportActionBar().getThemedContext() for inflating the views in your adapter? The action bar context is different than the regular context since the colors are reversed.

Upvotes: 4

Related Questions