Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

HideBottomViewOnScrollBehavior

public class HideBottomViewOnScrollBehavior
extends

java.lang.Object
   ↳
     ↳ com.google.android.material.behavior.HideBottomViewOnScrollBehavior<V extends View>
Known Direct Subclasses


The ERROR(/Behavior) for a View within a CoordinatorLayout to hide the view off the bottom of the screen when scrolling down, and show it when scrolling up.

Summary

Constants

int ENTER_ANIMATION_DURATION

int EXIT_ANIMATION_DURATION

Public constructors

HideBottomViewOnScrollBehavior()

Default constructor for instantiating HideBottomViewOnScrollBehaviors.

HideBottomViewOnScrollBehavior(Context context, AttributeSet attrs)

Default constructor for inflating HideBottomViewOnScrollBehaviors from layout.

Public methods

boolean onLayoutChild(CoordinatorLayout parent, V child, int layoutDirection)
void onNestedScroll(CoordinatorLayout coordinatorLayout, V child, View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed)
boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, V child, View directTargetChild, View target, int nestedScrollAxes)

Protected methods

void slideDown(V child)
void slideUp(V child)

Inherited methods

From class java.lang.Object

Constants

ENTER_ANIMATION_DURATION

int ENTER_ANIMATION_DURATION

Constant Value: 225 (0x000000e1)

EXIT_ANIMATION_DURATION

int EXIT_ANIMATION_DURATION

Constant Value: 175 (0x000000af)

Public constructors

HideBottomViewOnScrollBehavior

HideBottomViewOnScrollBehavior ()

Default constructor for instantiating HideBottomViewOnScrollBehaviors.

HideBottomViewOnScrollBehavior

HideBottomViewOnScrollBehavior (Context context, 
                AttributeSet attrs)

Default constructor for inflating HideBottomViewOnScrollBehaviors from layout.

Parameters
context Context: The ERROR(/Context).

attrs AttributeSet: The ERROR(/AttributeSet).

Public methods

onLayoutChild

boolean onLayoutChild (CoordinatorLayout parent, 
                V child, 
                int layoutDirection)

Parameters
parent CoordinatorLayout

child V

layoutDirection int

Returns
boolean

onNestedScroll

void onNestedScroll (CoordinatorLayout coordinatorLayout, 
                V child, 
                View target, 
                int dxConsumed, 
                int dyConsumed, 
                int dxUnconsumed, 
                int dyUnconsumed)

Parameters
coordinatorLayout CoordinatorLayout

child V

target View

dxConsumed int

dyConsumed int

dxUnconsumed int

dyUnconsumed int

onStartNestedScroll

boolean onStartNestedScroll (CoordinatorLayout coordinatorLayout, 
                V child, 
                View directTargetChild, 
                View target, 
                int nestedScrollAxes)

Parameters
coordinatorLayout CoordinatorLayout

child V

directTargetChild View

target View

nestedScrollAxes int

Returns
boolean

Protected methods

slideDown

void slideDown (V child)

Parameters
child V

slideUp

void slideUp (V child)

Parameters
child V