Created
February 3, 2017 01:20
-
-
Save brendanw/512f4befbb8cb664cf25285d87960720 to your computer and use it in GitHub Desktop.
Pared Down NestedScrollingParent and NestedScrollingChild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface NestedScrollingParent { | |
public boolean onStartNestedScroll(View child, View target, int nestedScrollAxes); | |
public void onNestedScrollAccepted(View child, View target, int nestedScrollAxes); | |
public void onStopNestedScroll(View target); | |
public void onNestedScroll(View target, int dxConsumed, int dyConsumed, | |
int dxUnconsumed, int dyUnconsumed); | |
public void onNestedPreScroll(View target, int dx, int dy, int[] consumed); | |
public boolean onNestedFling(View target, float velocityX, float velocityY, boolean consumed); | |
public boolean onNestedPreFling(View target, float velocityX, float velocityY); | |
public int getNestedScrollAxes(); | |
} | |
public interface NestedScrollingChild { | |
public void setNestedScrollingEnabled(boolean enabled); | |
public boolean isNestedScrollingEnabled(); | |
public boolean startNestedScroll(int axes); | |
public void stopNestedScroll(); | |
public boolean hasNestedScrollingParent(); | |
public boolean dispatchNestedScroll(int dxConsumed, int dyConsumed, | |
int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow); | |
public boolean dispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow); | |
public boolean dispatchNestedFling(float velocityX, float velocityY, boolean consumed); | |
public boolean dispatchNestedPreFling(float velocityX, float velocityY); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment