Code example for HorizontalScrollView

Methods: getChildAt, getScrollX

0
	 * @description: 是否由这个视图来滑动 
	 * @params: 
	 */ 
	private boolean isRefreshViewScroll(int deltaX){
		if(scroller != null){
			View child = scroller.getChildAt(0);
			if(deltaX > 0 && scroller.getScrollX() == 0){
//				向右滚动 
				mPullState = PULL_RIGHT_STATE;
				return true; 
			}else if(deltaX < 0 
					&& child.getMeasuredWidth() <= getWidth() 
					+ scroller.getScrollX()){
				mPullState = PULL_LEFT_STATE;
				return true; 
			} 
		} 
		return false; 
	} 
	 
	@Override