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? 

On Thursday, February 28, 2008 6:43:29 PM UTC-8, Megha Joshi wrote:
>
> Hi,
>
> This request has been made before and a method for handling cursor 
> position in EditText will be added in a future release of the SDK.
> For now, please use the following workaround:
>
> EditText inputField = new EditText(this);;
> Editable etext = inputField.getText();
> int position = etext.length();  // end of buffer, for instance
> Selection.setSelection(etext, position);
>
> Thanks,
> Megha
>
> On Wed, Feb 27, 2008 at 3:57 PM, conlan <con...@gmail.com <javascript:>> 
> wrote:
>
>>
>> I've looked at the docs for EditText and can't find anything related
>> to setting the carat position for an editText.
>>
>> This is an issue because if it's filled with a page worth of
>> characters, the user shouldn't have to hold down the arrow key until
>> the cursor gets to the end.
>>
>> Thanks
>>
>>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to