@Override
    public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) {
        return new LinearLayout.LayoutParams(getContext(), attrs);
    }
The duration to close time

@param duration
common/src/main/java/com/sxjs/common/widget/pulltorefresh/PtrFrameLayout.java