开发者

Cursor should appear from start in editText in android

I have a screen which have editText and a button, now when we click on the button it will fetch the Text from another screen and set to the editText. The problem is when the text has been set to edittext cursor position is coming at last. I want that cursor position should appear from start.

Any Idea?? Thank开发者_如何学Pythons.


MODIFIED

editText.requestFocus();
editText.setSelection(0);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜