code: static Drawable bootstrapLabel(Context context,
                                     BootstrapBrand bootstrapBrand,
                                     boolean rounded,
                                     float height) {
  
          int cornerRadius = (int) DimenUtils.pixelsFromDpResource(context, R.dimen.bootstrap_default_corner_radius);
  
          GradientDrawable drawable = new GradientDrawable();
          drawable.setColor(bootstrapBrand.defaultFill(context));
  
          // corner radius should be half height if rounded as a "Pill" label
          drawable.setCornerRadius(rounded ? height / 2 : cornerRadius);
          return drawable;
      }
docs: Generates a Drawable for a Bootstrap Label background, according to state parameters
  
  @param context        the current context
  @param bootstrapBrand the BootstrapBrand theming whose colors should be used
  @param rounded        whether the corners should be rounded or not
  @param height         the view height in px
  @return the Bootstrap Label background