public
static
abstract
class
BottomSheetBehavior.BottomSheetCallback
extends Object
| java.lang.Object | |
| ↳ | android.support.design.widget.BottomSheetBehavior.BottomSheetCallback |
Callback for monitoring events about bottom sheets.
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 | |
|---|---|
java.lang.Object
| |
BottomSheetBehavior.BottomSheetCallback ()
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.
|
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.
|