In android we can change the cursor color via:
android:textCursorDrawable=\"@drawable/black_color_cursor\".
android:textCursorDrawable=\"@drawable/black_color_cursor\"
How can we do this dynamically?
android:textCursorDrawable="@null"
Then in the application:
final EditText input = new EditText(nyactivity); input.setTextColor(getResources().getColor(R.color.black));
Get from here