public class BottomVerticalScrollBehavior<V extends android.view.View> extends VerticalScrollingBehavior<V>
VerticalScrollingBehavior.ScrollDirection| 构造器和说明 |
|---|
BottomVerticalScrollBehavior() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency) |
boolean |
onDependentViewChanged(CoordinatorLayout parent,
V child,
android.view.View dependency) |
boolean |
onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection) |
protected boolean |
onNestedDirectionFling(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
float velocityX,
float velocityY,
boolean consumed,
int scrollDirection) |
void |
onNestedVerticalPreScroll(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
int dx,
int dy,
int[] consumed,
int scrollDirection) |
void |
onNestedVerticalScrollConsumed(CoordinatorLayout coordinatorLayout,
V child,
int scrollDirection,
int currentOverScroll,
int totalConsumedScroll) |
void |
onNestedVerticalScrollUnconsumed(CoordinatorLayout coordinatorLayout,
V child,
int scrollDirection,
int currentOverScroll,
int totalScroll) |
getConsumedScrollDirection, getPreScrollDirection, getScrollDirection, onNestedFling, onNestedPreScroll, onNestedScroll, onStartNestedScrollpublic boolean onLayoutChild(CoordinatorLayout parent,
V child,
int layoutDirection)
public boolean layoutDependsOn(CoordinatorLayout parent,
V child,
android.view.View dependency)
public boolean onDependentViewChanged(CoordinatorLayout parent,
V child,
android.view.View dependency)
public void onNestedVerticalScrollUnconsumed(CoordinatorLayout coordinatorLayout,
V child,
int scrollDirection,
int currentOverScroll,
int totalScroll)
onNestedVerticalScrollUnconsumed 在类中 VerticalScrollingBehavior<V extends android.view.View>coordinatorLayout - the CoordinatorLayout parent of the view this Behavior is associated withchild - the child view of the CoordinatorLayout this Behavior is associated withscrollDirection - Direction of the scroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNcurrentOverScroll - Unconsumed value, negative or positive based on the direction;totalScroll - Cumulative value for current direction (Unconsumed)public void onNestedVerticalPreScroll(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
int dx,
int dy,
int[] consumed,
int scrollDirection)
onNestedVerticalPreScroll 在类中 VerticalScrollingBehavior<V extends android.view.View>coordinatorLayout - the CoordinatorLayout parent of the view this Behavior is associated withchild - the child view of the CoordinatorLayout this Behavior is associated withtarget - the descendant view of the CoordinatorLayout performing the nested scrolldx - the raw horizontal number of pixels that the user attempted to scrolldy - the raw vertical number of pixels that the user attempted to scrollconsumed - out parameter. consumed[0] should be set to the distance of dx that was consumed, consumed[1] should be set to the distance of dy that was consumedscrollDirection - Direction of the scroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNprotected boolean onNestedDirectionFling(CoordinatorLayout coordinatorLayout,
V child,
android.view.View target,
float velocityX,
float velocityY,
boolean consumed,
int scrollDirection)
onNestedDirectionFling 在类中 VerticalScrollingBehavior<V extends android.view.View>coordinatorLayout - the CoordinatorLayout parent of the view this Behavior is associated withchild - the child view of the CoordinatorLayout this Behavior is associated withtarget - the descendant view of the CoordinatorLayout performing the nested scrollvelocityX - horizontal velocity of the attempted flingvelocityY - vertical velocity of the attempted flingconsumed - true if the nested child view consumed the flingscrollDirection - Direction of the scroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNpublic void onNestedVerticalScrollConsumed(CoordinatorLayout coordinatorLayout,
V child,
int scrollDirection,
int currentOverScroll,
int totalConsumedScroll)
onNestedVerticalScrollConsumed 在类中 VerticalScrollingBehavior<V extends android.view.View>coordinatorLayout - the CoordinatorLayout parent of the view this Behavior is associated withchild - the child view of the CoordinatorLayout this Behavior is associated withscrollDirection - Direction of the scroll: SCROLL_DIRECTION_UP, SCROLL_DIRECTION_DOWNcurrentOverScroll - Unconsumed value, negative or positive based on the direction;totalConsumedScroll - Cumulative value for current direction (Unconsumed)