Code?

On Fri, Feb 25, 2011 at 6:49 AM, Richard Marsh <richardandrewma...@gmail.com
> wrote:

> I have a pretty weird situation. I have an expandable listview. When you
> click on the child item, a dialog opens up and you can edit some text to
> save. The dialog is created with a xml layout and using an inflater at
> runtime. I also populate the edit text field with a value.
>
> For some reason, the following happens when the dialog opens.
>
> 1st time: The cursor is posistioned after the text in the edit text. The
> getSelectionStart value is 0.
>
> 2nd time: the cursor is correctly at the start. getSelectionStart returns a
> random value, but never 0.
>
> 3rd time: Everything works as it should. Cursor at start and
> getSelectionStart returns 0.
>
> Not sure if this matters, but I build the dialog in the onCreateDialog and
> set the values of the title and textbox in the onPrepareDialog.
>
> I'm completely stumped. Any advice welcome.
>
> --
> 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

-- 
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