tags:

views:

305

answers:

1

Hi,

I'm targeting Android 1.5 - I'd like to use the ScrollView widget, but there's a hard-coded value within the class which makes it kind of unusable for my purposes (it's the "touch slop" value - set to 16 - the amount of movement the user has to make with their finger before considering the gesture a scroll - I think this should ideally be cut in half!).

Anyway, I could grab the source of ScrollView, paste it into my project, and then tweak that one static field, then rename the class MyScrollView. But where is the 'official' source code for Android living, specifically for 1.5? I grabbed the ScrollView code from here as a test:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/view;h=398e94d99129fca8fa32145de2fbf8c348253bcf;hb=HEAD

but not sure if this is the right place to get it.

Thanks

A: 

Same needed here. You can browse the class history. Seems dangerous adapt the class but I didn't found another solution, I need to change the scroll sensibility and that's a private field (mTouchSlop)

k7k0