public static interface SlideDrawer.SlideListener
SlideDrawer state changes.| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onClose(SlideDrawer drawer,
SlideDrawer.SlideDirection direction) |
Called when the
SlideDrawer state is changed to DrawerState#CLOSE. |
void |
onMiddle(SlideDrawer drawer,
SlideDrawer.SlideDirection direction,
SlideDrawer.DrawerState lastState) |
Called when the
SlideDrawer state is changed to DrawerState#MIDDLE. |
void |
onOpen(SlideDrawer drawer,
SlideDrawer.SlideDirection direction) |
Called when the
SlideDrawer state is changed to DrawerState#OPEN. |
void |
onSlideChange(SlideDrawer drawer,
SlideDrawer.SlideDirection direction,
int leftOffset,
int topOffset) |
Called when the
SlideDrawer position is changed due to a slide. |
void onOpen(SlideDrawer drawer, SlideDrawer.SlideDirection direction)
SlideDrawer state is changed to DrawerState#OPEN.drawer - Indicates the SlideDrawer where the slide event occurred.direction - Indicates the direction of the slide event.void onMiddle(SlideDrawer drawer, SlideDrawer.SlideDirection direction, SlideDrawer.DrawerState lastState)
SlideDrawer state is changed to DrawerState#MIDDLE.drawer - Indicates the SlideDrawer where the slide event occurred.direction - Indicates the direction of the slide event.lastState - Indicates the last DrawerState before switching to DrawerState#MIDDLE.void onClose(SlideDrawer drawer, SlideDrawer.SlideDirection direction)
SlideDrawer state is changed to DrawerState#CLOSE.drawer - Indicates the SlideDrawer where the slide event occurred.direction - Indicates the direction of the slide event.void onSlideChange(SlideDrawer drawer, SlideDrawer.SlideDirection direction, int leftOffset, int topOffset)
SlideDrawer position is changed due to a slide.drawer - Indicates the SlideDrawer where the slide event occurred.direction - Indicates the direction of the slide event.leftOffset - Indicates the sliding offset from the left side.topOffset - Indicates the sliding offset from the top side.