Class TextAppearance.Builder

    • Method Detail

      • setTextColor

        @NonNull
        public TextAppearance.Builder setTextColor​(int textColor)
        Returns TextView appearance configured with text color.
        Parameters:
        textColor - TextView text color.
        Returns:
        TextAppearance.Builder with the specified text color.
      • setTextSize

        @NonNull
        public TextAppearance.Builder setTextSize​(float textSize)
        Returns TextView appearance configured with text size.
        Parameters:
        textSize - TextView text size.
        Returns:
        TextAppearance.Builder with the specified text size.
      • setFontFamilyName

        @NonNull
        public TextAppearance.Builder setFontFamilyName​(@Nullable
                                                        java.lang.String fontFamilyName)
        Returns TextView appearance configured with name of the font family.
        Parameters:
        fontFamilyName - The name of the font family. May be null.
        Returns:
        TextAppearance.Builder with the specified text font.
      • setFontStyle

        public TextAppearance.Builder setFontStyle​(int fontStyle)
        Returns TextView appearance configured with style of the font.
        Parameters:
        fontStyle - The style (normal, bold, italic) of the font.
        Returns:
        TextAppearance.Builder with the specified text font.