Thursday, January 3, 2013

[android-developers] Re: Moving the cursor to the beginning of an EditText

Etienne wrote:
> This doesnt work in my case. The setSelection() method seems to have no
> effect. My EditText view contains ImageSpans. Is there some other kind of
> workaround?
>


if you called setText before and the new text didn't get layout phase
call setSelection in a separate runnable fired by View.post(Runnable)

pskink

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate