Reputation: 373
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
Upvotes: 1
Views: 3126
Reputation: 3917
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".
Upvotes: 0
Reputation: 195
You also can set android:textCursorDrawable
to @null
value to use android:textColor
of your EditText as your cursor color.
Upvotes: 6
Reputation: 33782
I think you can create your own EditText style, you can use a drawable for the cursor using this attribute
android:textCursorDrawable
Upvotes: 1