1

I'm trying to change the green of the cursor into grey. But it stays green. Any ideas?

<EditText
    android:textCursorDrawable="@color/grey"
    android:backgroundTint="@android:color/black"/>

enter image description here

Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94

2 Answers2

0

Use this property in EditText in the xml :

android:textCursorDrawable="@drawable/color_cursor"
Sufian
  • 6,405
  • 16
  • 66
  • 120
Ashish Garg
  • 162
  • 1
  • 11
0

You can try to add this to your AppTheme in styles.xml but it will also change color of other EditText elements (cursor and bottom line).

<item name="colorControlActivated">@color/grey</item>
Krio07
  • 56
  • 3