public static void fetchWidthAndHeight(ViewGroup.LayoutParams params, TypedArray array,
                                           int widthAttr, int heightAttr) {
        params.width = array.getLayoutDimension(widthAttr, 0);
        params.height = array.getLayoutDimension(heightAttr, 0);
    }
Helper method to be called from {@link ViewGroup.LayoutParams#setBaseAttributes} override
that reads layout_width and layout_height attribute values without throwing an exception if
they aren't present.
common/src/main/java/com/sxjs/common/widget/percentlayout/PercentLayoutHelper.java