1
votes

I have a problem with the EditText in Android 3.0: When i change the textColor property to black (or other color) the text cursor is remains white. I tried to change layer type, color apperance, sdk 11, sdk 12, but no success. In my project's design all EditText is white, so the cursor is invisible. Anyone can help to me to solve this problem? Thank You!

Apoth

3

3 Answers

1
votes

I think you can create your own EditText style, you can use a drawable for the cursor using this attribute

   android:textCursorDrawable
6
votes

You also can set android:textCursorDrawable to @null value to use android:textColor of your EditText as your cursor color.

0
votes

If want use Different cursor colour and different text colour for Edit box in 3.0 OS. Use android:textCursorDrawable as image like: android:textCursorDrawable="@drawable/cursor" and android:textColor="@color/black".