设置光标颜色与所输入字体颜色一样:
在EditText中加上属性 textCursorDrawable = "@null"
将光标位置显示在文字后面:
EditText editText = (EditText) findviewbyid(R.id.edittext);
Editable able = editText.getText();
int position = able.length();
Selection.setSelection(able,position);
设置光标颜色与所输入字体颜色一样:
在EditText中加上属性 textCursorDrawable = "@null"
将光标位置显示在文字后面:
EditText editText = (EditText) findviewbyid(R.id.edittext);
Editable able = editText.getText();
int position = able.length();
Selection.setSelection(able,position);