if (prediction.equals("Move")) {
?????????
}
it will be happen for gestures operation
|
android edittext cursor back side moving created on Sep 14, 2011 6:53:59 AM if (prediction.equals("Move")) { ????????? } it will be happen for gestures operation |
|
|
RE: android edittext cursor back side moving created on Sep 14, 2011 9:58:09 PM
There is no "move cursor" method for an editText, but I believe you can set the cursor position using the setSelection method. Try doing this:
int cursorPos = myEditText.getSelectionStart(); cursorPos--; if (cursorPos<0) cursorPos=0; myEditText.setSelection(cursorPos) |