Home | History | Annotate | Download | only in views

Lines Matching refs:scroll

61     /** Gets the current stack scroll */
66 /** Sets the current stack scroll */
74 /** Sets the current stack scroll without calling the callback. */
80 * Sets the current stack scroll to the initial state when you first enter recents.
89 /** Bounds the current scroll if necessary */
99 /** Bounds the current scroll if necessary, but does not synchronize the stack view with the model. */
110 /** Returns the bounded stack scroll */
111 float getBoundedStackScroll(float scroll) {
112 return Math.max(mLayoutAlgorithm.mMinScrollP, Math.min(mLayoutAlgorithm.mMaxScrollP, scroll));
115 /** Returns the amount that the aboslute value of how much the scroll is out of bounds. */
116 float getScrollAmountOutOfBounds(float scroll) {
117 if (scroll < mLayoutAlgorithm.mMinScrollP) {
118 return Math.abs(scroll - mLayoutAlgorithm.mMinScrollP);
119 } else if (scroll > mLayoutAlgorithm.mMaxScrollP) {
120 return Math.abs(scroll - mLayoutAlgorithm.mMaxScrollP);
125 /** Returns whether the specified scroll is out of bounds */
130 /** Animates the stack scroll into bounds */
135 // Start a new scroll animation
141 /** Animates the stack scroll */
188 /** Called from the view draw, computes the next scroll. */
191 float scroll = scrollRangeToProgress(mScroller.getCurrY());
192 setStackScrollRaw(scroll);
194 mCb.onScrollChanged(scroll);