android中定位光标位置

edittext.setSelection(int);

edittext.setText(123);//设置edittext中的内容

edittext.setSelection(123.length());//将光标移动到文字末尾

原文地址:https://www.cnblogs.com/dreamy890322/p/3148309.html