代码很简单,记一下。
phoneEt = (EditText) findViewById(R.id.phone);
String phone = "13888888888";
if (phone != null) {
phoneEt.setText(phone);
phoneEt.setSelection(phone.length());
}
改善一点用户体验而已,记得的话写一下。
代码很简单,记一下。
phoneEt = (EditText) findViewById(R.id.phone);
String phone = "13888888888";
if (phone != null) {
phoneEt.setText(phone);
phoneEt.setSelection(phone.length());
}
改善一点用户体验而已,记得的话写一下。