EditText设置了hint,光标在最后

929 阅读1分钟

有的时候需要Edittext设置hint文本后,初始化光标就放在hint的后面,也就是EditText的最后,这时就可以加上以下的代码到XML里面。

android:textCursorDrawable="@null"