Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display cursor in AutoCompleteTextView Android HoneyComb Action bar

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.

like image 595
prashant Avatar asked Mar 21 '11 19:03

prashant


1 Answers

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

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

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

like image 111
Jimmy Avatar answered Sep 19 '22 21:09

Jimmy