That touch slop is used by all scrollable views (like ListView). It is
definitely not too high for use with a finger on a touch screen.

On Fri, Nov 20, 2009 at 3:53 PM, Mark Wyszomierski <mar...@gmail.com> wrote:
> Well I got a clone of ScrollView to compile, turns out it's the
> constant:
>
>   private static final int TOUCH_SLOP = 16;
>
> as read from ViewConfiguration which is the real control variable
> here. I think it's too high for a ScrollView, but since they hard-
> coded it into the ScrollView source, I don't think there's a way to
> tweak it (besides leaving my cloned version in my project, which is a
> little scary)
>
> Thanks
>
>
> On Nov 20, 8:10 am, Mark Wyszomierski <mar...@gmail.com> wrote:
>> Hi Mark,
>>
>> Yeah I was thinking of doing this, I gave it a quick try but am
>> probably copying the source from the wrong location. I tried looking
>> here:
>>
>> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>>
>> but am not sure which version corresponds to the 1.5sdk which I'm
>> targeting. A quick try on a few of them led to unresolved inherited
>> member variables, so I'm thinking I'm not copying the correct version
>> for my SDK
>>
>> Thanks
>>
>> On Nov 20, 7:44 am, Mark Murphy <mmur...@commonsware.com> wrote:
>>
>>
>>
>> > Mark Wyszomierski wrote:
>> > > Is there no way to change the timeout to scroll in ScrollView? In the
>> > > source, it's set to:
>>
>> > >     static final int ANIMATED_SCROLL_GAP = 250;
>>
>> > > so any drags will be blocked for 250ms. This has the appearance of the
>> > > ScrollView being stuck for a bit before it moves. This makes small
>> > > scroll gestures difficult to work with. There's no way around this?
>>
>> > Tactically, clone the code and make your own version that behaves as you
>> > wish. Strategically, contribute patches back that make this
>> > configurable, so eventually you can stop maintaining your separate edition.
>>
>> > --
>> > Mark Murphy (a Commons 
>> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>>
>> > Warescription: Three Android Books, Plus Updates, $35/Year
>
> --
> 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
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

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