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);
精彩评论