简体   繁体   中英

Where to get Android 1.5 source?

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:

https://android.googlesource.com/platform/frameworks/base/+/android-1.6_r1/core/java/android/widget

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

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM