Android App Develpment
Thursday, November 1, 2012
Get cursor position of Edittext android or How to insert text at cursor position.
int start =editText.getSelectionStart();
editText.getText().insert(start, ((Button) v).getText());
editText.requestFocus();
editText.setSelection(start+1);
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment