[android-developers] Re: my EditText is an attention whore

2010-02-17 Thread jotobjects
Apparently the EditText is the only focusable view in the ScrollView.
Maybe put the progressbar outside the ScrollView.

On Feb 17, 10:20 am, DulcetTone  wrote:
> I have a ScrollView which features a variety of widgets --
> ProgressBars, Spinners and Checkboxes and a single EditText way down
> at the bottom.
>
> If I am at the top of the ScrollView with the EditText scrolled way
> off the bottom, touching and changing a ProgressBar at the top causes
> the ScrollView to jerk all the way to the bottom to proudly show me
> the EditText with a blinking cursor at the end of it. Toggling a
> checkbox does not do this.
>
> Why would this be?
>
> I have no funky code around the EditText and do not try to alter it
> programmatically after the context view is set.
>
> The EditText is defined in XML as
>
>                                                                  android:id="@+id/my_edittext"
>                                         android:layout_marginBottom="6dip"
>                                         android:maxLength="6"
>                                         android:minEms="4"
>                                         android:inputType="phone"
>                                         android:singleLine="true"
>                                 android:textColor="#00"
>                                         android:layout_width="wrap_content"
>                                         android:layout_height="wrap_content"/>

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


[android-developers] Re: my EditText is an attention whore

2010-02-17 Thread DulcetTone
More information:  this appears only to happen if I first scroll down
to reveal the EditText.
I notice that as I scroll the view by touch-drag, the EditText is
grabbing the focus as it breezes past (a behavior I could do without,
I suppose ... I'd be happy to insist on directly clicking on it.

I am guessing this is some adverse issue of focus, a feature I have so
far not had to directly consider.

tone

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