Most visited

Recently visited

BottomSheetBehavior.BottomSheetCallback

public static abstract class BottomSheetBehavior.BottomSheetCallback
extends Object

java.lang.Object
   ↳ android.support.design.widget.BottomSheetBehavior.BottomSheetCallback


Callback for monitoring events about bottom sheets.

Summary

Public constructors

BottomSheetBehavior.BottomSheetCallback()

Public methods

abstract void onSlide(View bottomSheet, float slideOffset)

Called when the bottom sheet is being dragged.

abstract void onStateChanged(View bottomSheet, int newState)

Called when the bottom sheet changes its state.

Inherited methods

From class java.lang.Object

Public constructors

BottomSheetBehavior.BottomSheetCallback

BottomSheetBehavior.BottomSheetCallback ()

Public methods

onSlide

void onSlide (View bottomSheet, 
                float slideOffset)

Called when the bottom sheet is being dragged.

Parameters
bottomSheet View: The bottom sheet view.
slideOffset float: The new offset of this bottom sheet within its range, from 0 to 1 when it is moving upward, and from 0 to -1 when it moving downward.

onStateChanged

void onStateChanged (View bottomSheet, 
                int newState)

Called when the bottom sheet changes its state.

Parameters
bottomSheet View: The bottom sheet view.
newState int: The new state. This will be one of STATE_DRAGGING, STATE_SETTLING, STATE_EXPANDED, STATE_COLLAPSED, or STATE_HIDDEN.