EditText 修改光标的颜色值 的方法非常简单 使用textCursorDrawable 即可
可以在EditText 里面
android:textCursorDrawable="@drawable/draw_cursor_shape"
drawable 里面
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#66ADFF" />
<size android:width="@dimen/dp_1" />
</shape>
这样就修改好了
如果想要光标颜色值和字体颜色值相同直接
android:textCursorDrawable="@null" 即可。