code: private int measureShort(int measureSpec) {
          int result;
          int specMode = MeasureSpec.getMode(measureSpec);
          int specSize = MeasureSpec.getSize(measureSpec);
  
          if (specMode == MeasureSpec.EXACTLY) {
              //We were told how big to be
              result = specSize;
          } else {
              //Measure the height
              result = (int) (2 * mRadius + getPaddingTop() + getPaddingBottom() + 1);
              //Respect AT_MOST value if that was what is called for by measureSpec
              if (specMode == MeasureSpec.AT_MOST) {
                  result = Math.min(result, specSize);
              }
          }
          return result;
      }
docs: Determines the height of this view
  
  @param measureSpec
  A measureSpec packed into an int
  @return The height of the view, honoring constraints from measureSpec