显示光标AutoCompleteTextView Android蜂窝行动起来吧 [英] Display cursor in AutoCompleteTextView Android HoneyComb Action bar
本文介绍了显示光标AutoCompleteTextView Android蜂窝行动起来吧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经把一个Android AutoCompleteTextView在蜂窝行动吧。现在的问题是,即使AutoCompleteTextView具有焦点,它不显示光标,使最终用户认为该盒不具有焦点。
I have placed an Android AutoCompleteTextView in Honeycomb action bar. The problem is even if the AutoCompleteTextView has focus, it does not show the cursor, so end-user thinks that the box does not have focus.
推荐答案
这些属性添加到您的AutoCompleteTextView,使光标黑色:
Add these attributes to your AutoCompleteTextView, to make the cursor black:
android:textColor="#000000"
android:textCursorDrawable="@null"
来源: http://stackoverflow.com/a/9165217/1267112
这篇关于显示光标AutoCompleteTextView Android蜂窝行动起来吧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文