public TextLayoutBuilder setSingleLine(boolean singleLine) {
    if (mParams.singleLine != singleLine) {
      mParams.singleLine = singleLine;
      mSavedLayout = null;
    }
    return this;
  }
Sets whether the text should be in a single line or not.

@param singleLine Whether the text should be in a single line or not
@return This {@link TextLayoutBuilder} instance
@see #setMaxLines(int)
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java