Lines Matching refs:delta
452 final float delta = updatePositionAndComputeDelta(event);
453 scrollTo(0, getScroll() + (int) delta);
458 if (delta > distanceFromMaxScrolling) {
461 mEdgeGlowBottom.onPull(delta / getHeight(), 1 - event.getX() / getWidth());
654 final int delta = y - getScroll();
656 if (delta > 0) {
657 scrollUp(delta);
659 scrollDown(delta);
683 public void setToolbarHeight(int delta) {
686 toolbarLayoutParams.height = delta;
775 final int delta = mScroller.getCurrY() - oldScroll;
777 if (delta > distanceFromMaxScrolling && distanceFromMaxScrolling > 0) {
867 private void scrollUp(int delta) {
870 setTransparentViewHeight(getTransparentViewHeight() - delta);
872 delta -= originalValue - getTransparentViewHeight();
878 toolbarLayoutParams.height -= delta;
882 delta -= originalValue - toolbarLayoutParams.height;
884 mScrollView.scrollBy(0, delta);
904 private void scrollDown(int delta) {
907 mScrollView.scrollBy(0, delta);
908 delta -= mScrollView.getScrollY() - originalValue;
913 toolbarLayoutParams.height -= delta;
917 delta -= originalValue - toolbarLayoutParams.height;
919 setTransparentViewHeight(getTransparentViewHeight() - delta);
1174 private void smoothScrollBy(int delta) {
1175 if (delta == 0) {
1178 throw new IllegalArgumentException("Smooth scrolling by delta=0 is "
1181 mScroller.startScroll(0, getScroll(), 0, delta);