Android 设置EditText光标位置 最后

CharSequence text = edtTxt_my_account_edit_nickname.getText();
if (text instanceof Spannable) {
Spannable spanText = (Spannable)text;
Selection.setSelection(spanText, text.length());
}

 

转自:http://www.cnblogs.com/zhujiabin/p/4270232.html

 

相关文章:

  • 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
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-11-20
  • 2021-07-27
  • 2022-12-23
相关资源
相似解决方案