public static interface NotificationStackScrollLayout.OnOverscrollTopChangedListener
Modifier and Type | Method and Description |
---|---|
void |
flingTopOverscroll(float velocity,
boolean open)
Notify a listener that the scroller wants to escape from the scrolling motion and
start a fling animation to the expanded or collapsed overscroll view (e.g expand the QS)
|
void |
onOverscrollTopChanged(float amount,
boolean isRubberbanded)
Notifies a listener that the overscroll has changed.
|
void onOverscrollTopChanged(float amount, boolean isRubberbanded)
amount
- the amount of overscroll, in pixelsisRubberbanded
- if true, this is a rubberbanded overscroll; if false, this is an
unrubberbanded motion to directly expand overscroll view (e.g expand
QS)void flingTopOverscroll(float velocity, boolean open)
velocity
- The velocity that the Scroller had when over flingingopen
- Should the fling open or close the overscroll view.