question: public void scrollToClose ( ) { if ( currentInnerStatus == InnerStatus . CLOSED ) { return ; } if ( maxOffset == minOffset ) { return ; } int dy = - getScrollY ( ) - minOffset ; if ( dy == 0 ) { return ; } currentInnerStatus = InnerStatus . SCROLLING ; int duration = MIN_SCROLL_DURATION + Math . abs ( ( MAX_SCROLL_DURATION - MIN_SCROLL_DURATION ) * dy / ( maxOffset - minOffset ) ) ; scroller . startScroll ( 0 , getScrollY ( ) , 0 , dy , duration ) ; invalidate ( ) ; }
target:  Scroll the layout to closed, meaning scroll to minOffset.