// 将EditText的光标定位到字符的最后面
 public void setEditTextCursorLocation(EditText editText) {
    CharSequence text = editText.getText();
    if (text instanceof Spannable) {
       Spannable spanText = (Spannable) text;
       Selection.setSelection(spanText, text.length());
    }
 }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-12-19
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案