added in version 23.4.0
belongs to Maven artifact com.android.support:design:27.1.0
belongs to Maven artifact com.android.support:design:27.1.0
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 | |
|---|---|
java.lang.Object
| |
Public constructors
BottomSheetBehavior.BottomSheetCallback
added in version 23.4.0
BottomSheetBehavior.BottomSheetCallback ()
Public methods
onSlide
added in version 23.4.0
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 [-1,1] range. Offset
increases as this bottom sheet is moving upward. From 0 to 1 the sheet
is between collapsed and expanded states and from -1 to 0 it is
between hidden and collapsed states.
|
onStateChanged
added in version 23.4.0
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.
|
Annotations
Interfaces
- AppBarLayout.OnOffsetChangedListener
- BaseTransientBottomBar.ContentViewCallback
- BottomNavigationView.OnNavigationItemReselectedListener
- BottomNavigationView.OnNavigationItemSelectedListener
- CoordinatorLayout.AttachedBehavior
- NavigationView.OnNavigationItemSelectedListener
- SwipeDismissBehavior.OnDismissListener
- TabLayout.OnTabSelectedListener
Classes
- AppBarLayout
- AppBarLayout.Behavior
- AppBarLayout.Behavior.DragCallback
- AppBarLayout.Behavior.SavedState
- AppBarLayout.LayoutParams
- AppBarLayout.ScrollingViewBehavior
- BaseTransientBottomBar
- BaseTransientBottomBar.BaseCallback
- BottomNavigationView
- BottomSheetBehavior
- BottomSheetBehavior.BottomSheetCallback
- BottomSheetBehavior.SavedState
- BottomSheetDialog
- BottomSheetDialogFragment
- CollapsingToolbarLayout
- CollapsingToolbarLayout.LayoutParams
- CoordinatorLayout
- CoordinatorLayout.Behavior
- CoordinatorLayout.LayoutParams
- CoordinatorLayout.SavedState
- FloatingActionButton
- FloatingActionButton.Behavior
- FloatingActionButton.OnVisibilityChangedListener
- NavigationView
- NavigationView.SavedState
- Snackbar
- Snackbar.Callback
- SwipeDismissBehavior
- TabItem
- TabLayout
- TabLayout.Tab
- TabLayout.TabLayoutOnPageChangeListener
- TabLayout.ViewPagerOnTabSelectedListener
- TextInputEditText
- TextInputLayout