I am usuing edit field, but when I type any text in this field, then cursor in not moving with the text, It is showing typed text, but cursor position still remains on start .
I am using Os 6 and Os 7/7.1.
Please let me know for the problem. Following is the image for it.
I have added following code - onFocus and onUnFocus methods to the text field:
protected void onFocus(int direction) {
this.setCursorPosition(this.getTextLength());
invalidate();
super.onFocus(direction);
};
protected void onUnfocus() {
this.setCursorPosition(this.getTextLength());
invalidate();
super.onUnfocus();
};
It has solved my problem. Thanks to all for your support.