docs: @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          // restrict view to default progressbar height
  
          int width = MeasureSpec.getSize(widthMeasureSpec);
          int height = MeasureSpec.getSize(heightMeasureSpec);
  
          int heightMode = MeasureSpec.getMode(heightMeasureSpec);
  
          switch (heightMode) {
              case MeasureSpec.EXACTLY:
                  break;
              case MeasureSpec.AT_MOST: // prefer default height, if not all available use as much as possible
                  float desiredHeight = (baselineHeight * bootstrapSize);
                  height = (height > desiredHeight) ? (int) desiredHeight : height;
                  break;
              default:
                  height = (int) (baselineHeight * bootstrapSize);
                  break;
          }
          setMeasuredDimension(width, height);
      }