SideSheetCallback
public
abstract
class
SideSheetCallback
extends Object
java.lang.Object
|
↳ |
com.google.android.material.sidesheet.SideSheetCallback
|
Callback that monitors side sheet events.
Summary
Public methods |
abstract
void
|
onSlide(View sheet, float slideOffset)
Called when the sheet is being dragged.
|
abstract
void
|
onStateChanged(View sheet, int newState)
Called when the sheet changes its state.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
SideSheetCallback
public SideSheetCallback ()
Public methods
onSlide
public abstract void onSlide (View sheet,
float slideOffset)
Called when the sheet is being dragged.
Parameters |
sheet |
View : The sheet view. |
slideOffset |
float : The new offset of this sheet within [0,1] range. Offset increases as this
sheet is moving towards the outer edge. A value of 0 means that the sheet is hidden, and a
value of 1 means that the sheet is fully expanded.
|
onStateChanged
public abstract void onStateChanged (View sheet,
int newState)
Called when the sheet changes its state.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]