question: private void smoothScrollToItemView ( int position , boolean pageSelected ) { mCurrentPosition = position ; if ( mCurrentPosition > getChildCount ( ) - 1 ) { mCurrentPosition = getChildCount ( ) - 1 ; } if ( mOnPagerChangeListener != null && pageSelected ) { mOnPagerChangeListener . onPageSelected ( position ) ; } int dx = position * ( getMeasuredWidth ( ) - ( int ) mMarginLeftRight * 2 ) - getScrollX ( ) ; mScroller . startScroll ( getScrollX ( ) , 0 , dx , 0 , Math . min ( Math . abs ( dx ) * 2 , MAX_SETTLE_DURATION ) ) ; invalidate ( ) ; }
target:  scroll to confirmed position of child