static GradientDrawable getBadgeDrawable(BadgeItem badgeItem, Context context) {
        GradientDrawable shape = new GradientDrawable();
        shape.setShape(GradientDrawable.RECTANGLE);
        shape.setCornerRadius(context.getResources().getDimensionPixelSize(R.dimen.badge_corner_radius));
        shape.setColor(badgeItem.getBackgroundColor(context));
        shape.setStroke(badgeItem.getBorderWidth(), badgeItem.getBorderColor(context));
        return shape;
    }
Used to set badge for given tab

@param badgeItem           holds badge data
@param bottomNavigationTab bottom navigation tab to which badge needs to be attached
common/src/main/java/com/sxjs/common/widget/bottomnavigation/BottomNavigationHelper.java