public interface ObservableScrollViewListener
| Modifier and Type | Method and Description |
|---|---|
void |
onDownMotionEvent()
Called when the down motion event occurred.
|
void |
onScrollChanged(int scrollY,
boolean firstScroll,
boolean dragging)
Called when the scroll change events occurred.
|
void |
onUpOrCancelMotionEvent(ObservableScrollState observableScrollState)
Called when the dragging ended or canceled.
|
void onScrollChanged(int scrollY,
boolean firstScroll,
boolean dragging)
scrollY - scroll position in Y axisfirstScroll - true when this is called for the first time in the consecutive motion
eventsdragging - true when the view is dragged and false when the view is scrolled in the
inertiavoid onDownMotionEvent()
void onUpOrCancelMotionEvent(ObservableScrollState observableScrollState)
observableScrollState - state to indicate the scroll direction