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

@param duration
ptr-lib/src/in/srain/cube/views/ptr/PtrFrameLayout.java