public static int dp2px(Context context, float dp) {
        float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics());
        return Math.round(px);
    }
@param context used to fetch display metrics
@param dp      dp value
@return pixel value
common/src/main/java/com/sxjs/common/widget/bottomnavigation/utils/Utils.java