How can I change EditText's cursor's color programmatically ?
EditText's
In android 4.0 and above, cursor color is white. and if EditTexts background is also white, it becomes invisible.
EditText
In your EditText properties, there is an attribute android:textCursorDrawable
android:textCursorDrawable
Now set it to @null like,
android:textCursorDrawable="@null"
So now your EditText Cursor is same as your EditText TextColor.
Reference From Set EditText cursor color
2.1m questions
2.1m answers
60 comments
57.0k users