public void scrollToOpen(){
  if (currentInnerStatus == InnerStatus.OPENED) {
    return;
  }
  if (maxOffset == minOffset) {
    return;
  }
  int dy=-getScrollY() - maxOffset;
  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();
}

public void scrollToOpen ( ) { if ( currentInnerStatus == InnerStatus . OPENED ) { return ; } if ( maxOffset == minOffset ) { return ; } int dy = - getScrollY ( ) - maxOffset ; 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 ( ) ; }
scroll the layout to open , meaning scroll down to maxoffset .
