Code example for Scroller

Methods: computeScrollOffset, getCurrX, getCurrY, isFinished

0
			this.mapView.mRenderer.move(-distanceX, distanceY);
			return true; 
		} 
 
		public boolean scroll() { 
			if (this.scroller.isFinished())
				return false; 
 
			this.scroller.computeScrollOffset();
			float curX = this.scroller.getCurrX();
			float curY = this.scroller.getCurrY();
			float x = curX - this.xScroll;
			float y = curY - this.yScroll;
 
			if (Math.abs(x) >= 1 || Math.abs(y) >= 1) {
				this.mapView.mRenderer.move(x, -y);
 
				this.xScroll = curX;
				this.yScroll = curY;
			}