private int getColor(int id) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            return getContext().getColor(id);
        } else {
            //noinspection deprecation
            return getResources().getColor(id);
        }
    }
Sets the width of the center gradient color to a value higher than 0 to less than 1.
0.99 means that the whole shimmer line will have this color with a little transparent edges.
The default value is 0.1.

@param gradientCenterColorWidth The width of the center gradient color.
imitate/src/main/java/com/engineer/imitate/ui/widget/ShimmerLayout.java