public interface ObservableScrollViewCallbacks
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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(ScrollState scrollState)
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(ScrollState scrollState)
scrollState - state to indicate the scroll direction