zeal4android
for Android developers
Showing posts with label
EditText
.
Show all posts
Showing posts with label
EditText
.
Show all posts
Monday, April 9, 2012
Android EditText set cursor position to end
Set cursor to end:
EditText editText = (EditText)findViewById(R.id.
edit_text
);
editText.setSelection(editText.getText().length());
Set cursor to front:
EditText editText = (EditText)findViewById(R.id.
edit_text
);
editText.setSelection(0);
Older Posts
Home
Subscribe to:
Posts (Atom)