0

I need to change the color of this pink stuff. I'm not sure if that's a cursor or not. My theory is that it's based on the device preferences. When I tried showing that stuff in other app in my simulator, they are in different colors.

enter image description here

What I did:

  1. Searching on SO, but to no avail.
  2. Changed this attribute. - the blinking cursor was the only thing affected by this property.

    android:textCursorDrawable
    
Glenn Posadas
  • 12,555
  • 6
  • 54
  • 95
  • 1
    Possible duplicate of [How to change color / appearance of EditText select handle / anchor?](http://stackoverflow.com/questions/15133926/how-to-change-color-appearance-of-edittext-select-handle-anchor) – Satan Pandeya Jan 06 '17 at 07:34
  • Agreed. What step should I take if it's a duplicate? Close or Delete? – Glenn Posadas Jan 06 '17 at 07:36

1 Answers1

1

Its not an cursor it an cursor pointer color so you can change that pointer color by means of changing the theme

ColorAccent :

<style name="EditTextColorCustom" parent="@style/AppBaseTheme">
    <!-- Customize your theme here. -->
    <item name="colorAccent">@color/colorAccent</item>//your color here
</style>

Step2:

In your styles.xml put like this:

<item name="colorAccent">@color/reddish</item>
Rajakumar
  • 907
  • 1
  • 7
  • 17