private void stretchViewVertically(View view, int crossSize) {
        LayoutParams lp = (LayoutParams) view.getLayoutParams();
        int newHeight = crossSize - lp.topMargin - lp.bottomMargin;
        newHeight = Math.max(newHeight, 0);
        view.measure(MeasureSpec
                        .makeMeasureSpec(view.getMeasuredWidth(), MeasureSpec.EXACTLY),
                MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY));
    }
Expand the view vertically to the size of the crossSize (considering the view margins)

@param view      the View to be stretched
@param crossSize the cross size
common/src/main/java/com/sxjs/common/widget/flexboxlayout/FlexboxLayout.java