Display cursor in AutoCompleteTextView Android HoneyComb Action bar

荒凉一梦 提交于 2019-12-23 10:08:01

问题


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.


回答1:


Add these attributes to your AutoCompleteTextView, to make the cursor black:

android:textColor="#000000"
android:textCursorDrawable="@null"

From: https://stackoverflow.com/a/9165217/1267112



来源:https://stackoverflow.com/questions/5382571/display-cursor-in-autocompletetextview-android-honeycomb-action-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!