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

05-06 23:02