code: public final void resize(float width, float height) {
          if (width < 0) {
              width = 0;
          }
          if (height < 0) {
              height = 0;
          }
          if (mWidth != width || mHeight != height) {
              mWidth = width;
              mHeight = height;
              onResize(width, height);
          }
      }
docs: Resizes the dimensions of this shape.
  Must be called before {@link #draw(Canvas, Paint)}.
  
  @param width  the width of the shape (in pixels)
  @param height the height of the shape (in pixels)