摘要:
1 EditText mEditText = (EditText)findViewById(R.id.input);//EditText对象 2 3 int index = mEditText.getSelectionStart();//获取光标所在位置 4 5 String text="I want to input str"; 6 7 Editable edit = mEditText.getEditableText();//获取EditText的文字 8 9 if (index < 0 || index >= edit.length() ){10 11 e 阅读全文