public TextLayoutBuilder setWidth(@Px int width, @MeasureMode int measureMode) {
    if (mParams.width != width || mParams.measureMode != measureMode) {
      mParams.width = width;
      mParams.measureMode = measureMode;
      mSavedLayout = null;
    }
    return this;
  }
Sets the intended width of the text layout while respecting the measure mode.

@param width The width of the text layout
@param measureMode The mode with which to treat the given width
@return This {@link TextLayoutBuilder} instance
@see #setWidth(int)
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java