AutoCompleteTextView不能正常显示与ActionBarSherlock主题文本 [英] AutoCompleteTextView does not properly display text with ActionBarSherlock theme

查看:133
本文介绍了AutoCompleteTextView不能正常显示与ActionBarSherlock主题文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用ActionBarSherlock与Theme.Sherlock.Light.DarkActionBar主题,在我的AutoCompleteTextView文字是如此的颜色作为背景相同。我已经打过电话setTextColour()并传入INT指的是黑色的,但它似乎并没有任何区别。

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.

这是一个已知的bug?或未知的bug?或者,我只是失去了一些东西?

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:

推荐答案

您使用 getSupportActionBar()。getThemedContext()的膨胀在适配器的看法?操作栏的上下文比普通情况下,因为颜色是颠倒的不同。

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.

这篇关于AutoCompleteTextView不能正常显示与ActionBarSherlock主题文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆