public void setOnFinishListener(OnFinishListener onFinishListener ) {
        viewDragHelper = ViewDragHelper.create(this, 1.0f, new ViewDragHelperCallBack(onFinishListener));
    }
This should be added first than any other setting, because it will overwrite the viewDragHelper

@param onFinishListener listener for what to do when view reach the end
library/src/main/java/com/liuguangqiang/swipeback/SwipeBackLayout.java