code: public void setMaxStrokeWidth(float width) {
          maxStrokeWidth = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, getResources().getDisplayMetrics());
      }
docs: Sets the maximum stroke width
  
  @param width The width (in dp)