code: public void updateSizes(@ProgressDrawableSize int size) {
          final DisplayMetrics metrics = mResources.getDisplayMetrics();
          final float screenDensity = metrics.density;
  
          if (size == LARGE) {
              setSizeParameters(CIRCLE_DIAMETER_LARGE*screenDensity, CIRCLE_DIAMETER_LARGE*screenDensity, CENTER_RADIUS_LARGE*screenDensity,
                      STROKE_WIDTH_LARGE*screenDensity, ARROW_WIDTH_LARGE*screenDensity, ARROW_HEIGHT_LARGE*screenDensity);
          } else {
              setSizeParameters(CIRCLE_DIAMETER*screenDensity, CIRCLE_DIAMETER*screenDensity, CENTER_RADIUS*screenDensity, STROKE_WIDTH*screenDensity,
                      ARROW_WIDTH*screenDensity, ARROW_HEIGHT*screenDensity);
          }
      }
docs: Set the overall size for the progress spinner. This updates the radius
  and stroke width of the ring.
  
  @param size One of {@link MaterialProgressDrawable.LARGE} or
  {@link MaterialProgressDrawable.DEFAULT}