Code example for Scroller

Methods: abortAnimation, getCurrX, isFinished, startScroll

0
	public void moveToLeft() { 
		if(DEBUG)LogHelper.LOGD(TAG, "moveToLeft");
//		synchronized (DisplayThemeInfo.animationLock) { 
			if(!mStartAnimation){
				if(DEBUG)
					LogHelper.LOGD(TAG, "moveLeftIn----mScroller.getCurrX()="+mScroller.getCurrX());
				mStartAnimation = true;
				isLeft = true;
				if(!mScroller.isFinished()){
					mScroller.abortAnimation();
				} 
				/** 
				 * dx是移动距离。。。 
				 * */ 
				mScroller.startScroll(-mTheme.getScreenWidth(), 0, mTheme.getScreenWidth(), 0, mAnimationDuration);
				invalidate();
			} 
//		} 
	} 
	 
	public void leftmoveIn() {