I misunderstood the beharior of moveCursorToVisibleOffiset on the
piece of code I've put on my last e-mail. But any way. Now I'm using
an extension based on TextView. Works fine. Thank you!


On 22 jun, 22:23, Gustavo Vargas <[email protected]> wrote:
> > How hard did you look? While I admit the solution is a little less than
> > obvious all I did was search for "android EditText cursor position" and
> > found the answer.
>
> >http://tinyurl.com/6fcveor
>
> I know, the problem is this doesn't work. suppose my class extends
> edittext and then:
>
> this.setText(""+this.getText()+newChar);
> this.setSelection(this.getText().lenght());
> this.moveCursorToVisibleOffset();
>
> looks nice, but for some reason the cursor rests blinking at the last
> enter (new line, 0xA). Every new line the cursor always stay onto the
> end of previous line.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to