Lines Matching refs:Scroller
24 import android.widget.Scroller;
27 * Maintains a Scroller object and two axis scrolling information
601 private Scroller mScrollScroller;
602 private Scroller mFlingScroller;
606 /** using fling scroller */
609 /** using scroll scroller */
662 mScrollScroller = new Scroller(mContext, new DecelerateInterpolator(2));
663 mFlingScroller = new Scroller(mContext, new LinearInterpolator());
789 Scroller scroller;
792 scroller = mFlingScroller;
795 scroller = mScrollScroller;
799 if (!scroller.isFinished()) {
802 dx = basex + dx - scroller.getCurrX();
803 dy = basey + dy - scroller.getCurrY();
804 basex = scroller.getCurrX();
805 basey = scroller.getCurrY();
823 scroller.startScroll(basex, basey, dx, dy, duration);
827 Scroller scroller;
829 scroller = mFlingScroller;
831 scroller = mScrollScroller;
835 return scroller.getDuration();
928 Scroller scroller;
930 scroller = mFlingScroller;
932 scroller = mScrollScroller;
938 if (scroller.isFinished()) {
939 return (horizontal.getScrollCenter() == scroller.getCurrX() &&
940 vertical.getScrollCenter() == scroller.getCurrY());
964 * update scroller position, this is either trigger by fling()/startScroll() on the
965 * scroller object, or lerper, or can be caused by a dragBy()
968 Scroller scroller;
970 scroller = mFlingScroller;
972 scroller = mScrollScroller;
983 scroller.computeScrollOffset();
984 horizontal.updateScrollCenter(scroller.getCurrX(), true);
985 vertical.updateScrollCenter(scroller.getCurrY(), true);