开发者

Display cursor in AutoCompleteTextView Android HoneyComb Action bar

开发者 https://www.devze.com 2023-02-18 15:49 出处:网络
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 th

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.


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

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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消