public TextLayoutBuilder setMaxLines(int maxLines) {
    if (mParams.maxLines != maxLines) {
      mParams.maxLines = maxLines;
      mSavedLayout = null;
    }
    return this;
  }
Sets a maximum number of lines to be shown by the Layout.

<p>Note: Gingerbread always default to two lines max when ellipsized. This cannot be changed.
Use a TextView if you want more control over the number of lines.

@param maxLines The number of maxLines to show in this Layout
@return This {@link TextLayoutBuilder} instance
@see #setSingleLine(boolean)
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java