public void setMaxStrokeWidth(float width) {
        maxStrokeWidth = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, width, getResources().getDisplayMetrics());
    }
public void setMaxStrokeWidth ( float width ) { maxStrokeWidth = TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , width , getResources ( ) . getDisplayMetrics ( ) ) ; }
Sets the maximum stroke width

@param width The width (in dp)