Adem Adem - 1 year ago 721
Android Question

change edittext cursor color

How can I change

cursor's color programmatically ?

In android 4.0 and above, cursor color is white. and if
s background is also white, it becomes invisible.

Answer Source

In your EditText properties, there is an attribute android:textCursorDrawable

Now set it to @null like,


So now your EditText Cursor is same as your EditText TextColor.

Reference From Set EditText cursor color

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download