public TextLayoutBuilder setAlignment(Alignment alignment) {
    if (mParams.alignment != alignment) {
      mParams.alignment = alignment;
      mSavedLayout = null;
    }
    return this;
  }
Sets text alignment for the layout.

@param alignment The text alignment for the layout
@return This {@link TextLayoutBuilder} instance
library/src/main/java/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.java