You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
copy android.widget.Scroller from AOSP and implement missing scroll APIs
This is needed to make ViewPager functional
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.animation.Interpolator;
|
||||
|
||||
public class OverScroller extends ViewGroup {
|
||||
public class OverScroller {
|
||||
|
||||
public OverScroller(Context context, Interpolator interpolator) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public OverScroller(Context context) {
|
||||
}
|
||||
|
||||
public void abortAnimation () {}
|
||||
|
||||
public void startScroll(int startX, int startY, int dx, int dy, int duration) {}
|
||||
|
||||
public boolean computeScrollOffset() {return false;}
|
||||
|
||||
public int getCurrX() {return 0;}
|
||||
public int getCurrY() {return 0;}
|
||||
|
||||
public int getFinalX() {return 0;}
|
||||
public int getFinalY() {return 0;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user