public void closeToLeft ( ) { if ( viewDragHelper . smoothSlideViewTo ( dragView , - transformer . getOriginalWidth ( ) , getHeight ( ) - transformer . getMinHeightPlusMargin ( ) ) ) { ViewCompat . postInvalidateOnAnimation ( this ) ; notifyCloseToLeftListener ( ) ; } }
Close the custom view applying an animation to close the view to the left side of the screen .