docs: private int measureSize(int specType, int contentSize, int measureSpec) {
          int result;
          int specMode = MeasureSpec.getMode(measureSpec);
          int specSize = MeasureSpec.getSize(measureSpec);
  
          if (specMode == MeasureSpec.EXACTLY) {
              result = Math.max(contentSize, specSize);
          } else {
              result = contentSize;
  
              if (specType == 1) {
                  // width
                  result += (getPaddingLeft() + getPaddingRight());
              } else {
                  // height
                  result += (getPaddingTop() + getPaddingBottom());
              }
          }
  
          return result;
      }