public interface OnScrollChangedListener
| Modifier and Type | Method and Description |
|---|---|
void |
onScrollChanged(int y,
int oldY,
int maxY)
This method will be invoked when scroll state
of
ScrollableLayout has changed. |
void onScrollChanged(int y,
int oldY,
int maxY)
ScrollableLayout has changed.y - current scroll yoldY - previous scroll ymaxY - maximum scroll y (helpful for calculating scroll ratio for e.g. for alpha to be applied)ScrollableLayout.setOnScrollChangedListener(OnScrollChangedListener)