将光标放在文本中的EditText结束放在、光标、结束、文本中

由网友(过去,就像看一场黑白电影)分享简介:我改变的的EditText 的值的KeyListener 。但是,当我更改文本光标移动到的EditText 的开始。我需要的光标是在该文本的结尾。But when I change the text the cursor is moving to the beginning of the EditText.I...

我改变的的EditText 的值的KeyListener

但是,当我更改文本光标移动到的EditText 的开始。 我需要的光标是在该文本的结尾。

But when I change the text the cursor is moving to the beginning of the EditText. I need the cursor to be at the end of the text.

如何将光标移动到文本的最后一个的EditText

How to move the cursor to the end of the text in a EditText.

推荐答案

试试这个:

EditText et = (EditText)findViewById(R.id.inbox);
et.setSelection(et.getText().length());
阅读全文

相关推荐

最新文章