答案 0 :(得分:0)
你必须设置光标可绘制的运行时间试试这个:
try {
Field field = TextView.class.getDeclaredField("mCursorDrawableRes");
field.setAccessible(true);
field.set(yourEditText, R.drawable.your_cursor_drawable);
} catch (Exception ignored) {
}