Skip navigation links
B C D G L M R S T U W 

B

build() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Builds and returns a Layout.

C

com.facebook.fbui.textlayoutbuilder - package com.facebook.fbui.textlayoutbuilder
Provides the classes to build text Layouts easily.
com.facebook.fbui.textlayoutbuilder.glyphwarmer - package com.facebook.fbui.textlayoutbuilder.glyphwarmer
Provides a default implementation of GlyphWarmer.
com.facebook.fbui.textlayoutbuilder.util - package com.facebook.fbui.textlayoutbuilder.util
Provides an utility class to measure text Layouts.

D

DEFAULT_MAX_LINES - Static variable in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 

G

getAlignment() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text alignment for this TextLayoutBuilder.
getBreakStrategy() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the break strategy for this TextLayoutBuilder.
getDensity() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 
getDrawableState() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the drawable state for this TextLayoutBuilder.
getEllipsize() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text ellipsize for this TextLayoutBuilder.
getGlyphWarmer() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the GlyphWarmer used by the TextLayoutBuilder.
getHeight(Layout) - Static method in class com.facebook.fbui.textlayoutbuilder.util.LayoutMeasureUtil
Prior to version 20, If the Layout specifies extra space between lines (either by spacingmult or spacingadd) the StaticLayout would erroneously add this space after the last line as well.
getHyphenationFrequency() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the hyphenation frequency for this TextLayoutBuilder.
getIncludeFontPadding() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns whether this TextLayoutBuilder should include font padding.
getLeftIndents() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the left indents set on this TextLayoutBuilder.
getLinkColor() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the link color for this TextLayoutBuilder.
getMaxEms() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the max width expressed in ems.
getMaxLines() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the number of max lines used by this TextLayoutBuilder.
getMaxWidth() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the max width expressed in pixels.
getMinEms() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the min width expressed in ems.
getMinWidth() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the min width expressed in pixels.
getRightIndents() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the right indents set on this TextLayoutBuilder.
getShouldCacheLayout() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns whether the TextLayoutBuilder should cache the layout.
getShouldWarmText() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns whether the TextLayoutBuilder should warm the layout.
getSingleLine() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns whether the TextLayoutBuilder should show a single line.
getText() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text that would be packed in a layout by this TextLayoutBuilder.
getTextColor() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text color for this TextLayoutBuilder.
getTextDirection() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text direction for this TextLayoutBuilder.
getTextSize() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text size for this TextLayoutBuilder.
getTextSpacingExtra() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text spacing extra for this TextLayoutBuilder.
getTextSpacingMultiplier() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the text spacing multiplier for this TextLayoutBuilder.
getTypeface() - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Returns the typeface for this TextLayoutBuilder.
getWidth(Layout) - Static method in class com.facebook.fbui.textlayoutbuilder.util.LayoutMeasureUtil
Returns the width of the layout.
GlyphWarmer - Interface in com.facebook.fbui.textlayoutbuilder
Specifies an interface that a class has to implement to warm the text Layout in the background.
GlyphWarmerImpl - Class in com.facebook.fbui.textlayoutbuilder.glyphwarmer
Default GlyphWarmer that runs a HandlerThread to draw a text Layout on a Picture.
GlyphWarmerImpl() - Constructor for class com.facebook.fbui.textlayoutbuilder.glyphwarmer.GlyphWarmerImpl
 

L

LayoutMeasureUtil - Class in com.facebook.fbui.textlayoutbuilder.util
Utility Class for measuring text Layouts.
LayoutMeasureUtil() - Constructor for class com.facebook.fbui.textlayoutbuilder.util.LayoutMeasureUtil
 

M

MEASURE_MODE_AT_MOST - Static variable in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 
MEASURE_MODE_EXACTLY - Static variable in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 
MEASURE_MODE_UNSPECIFIED - Static variable in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 

R

ResourceTextLayoutHelper - Class in com.facebook.fbui.textlayoutbuilder
An utility class to update a TextLayoutBuilder from an Android resource.
ResourceTextLayoutHelper() - Constructor for class com.facebook.fbui.textlayoutbuilder.ResourceTextLayoutHelper
 

S

setAlignment(Layout.Alignment) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets text alignment for the layout.
setBreakStrategy(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets a break strategy breaking paragraphs into lines.
setDensity(float) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the density of this layout.
setDrawableState(int[]) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Updates the text colors based on the drawable state.
setEllipsize(TextUtils.TruncateAt) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the ellipsis location for the layout.
setGlyphWarmer(GlyphWarmer) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the glyph warmer to use.
setHyphenationFrequency(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the frequency of automatic hyphenation to use when determining word breaks.
setIncludeFontPadding(boolean) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Set whether the text Layout includes extra top and bottom padding to make room for accents that go above the normal ascent and descent.
setIndents(int[], int[]) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the left and right indents for this TextLayoutBuilder.
setLinkColor(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the link color for the text in the layout.
setMaxEms(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the max width expressed in ems.
setMaxLines(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets a maximum number of lines to be shown by the Layout.
setMaxWidth(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the max width expressed in pixels.
setMinEms(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the min width expressed in ems.
setMinWidth(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the min width expressed in pixels.
setShadowLayer(float, float, float, int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the shadow layer for the layout.
setShouldCacheLayout(boolean) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets whether the text layout should be cached or not.
setShouldWarmText(boolean) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets whether the text should be warmed or not.
setSingleLine(boolean) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets whether the text should be in a single line or not.
setText(CharSequence) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text for the layout.
setTextAppearance(TextLayoutBuilder, Context, int) - Static method in class com.facebook.fbui.textlayoutbuilder.ResourceTextLayoutHelper
Sets a text appearance for the layout.
setTextColor(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text color for the layout.
setTextColor(ColorStateList) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text color for the layout.
setTextDirection(TextDirectionHeuristicCompat) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text direction heuristic for the layout.
setTextSize(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text size for the layout.
setTextSpacingExtra(float) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the text extra spacing for the layout.
setTextSpacingMultiplier(float) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the line spacing multiplier for the layout.
setTextStyle(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets a text style for the layout.
setTypeface(Typeface) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the typeface used by this TextLayoutBuilder.
setWidth(int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the intended width of the text layout.
setWidth(int, int) - Method in class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
Sets the intended width of the text layout while respecting the measure mode.

T

TextLayoutBuilder - Class in com.facebook.fbui.textlayoutbuilder
An utility class to create text Layouts easily.
TextLayoutBuilder() - Constructor for class com.facebook.fbui.textlayoutbuilder.TextLayoutBuilder
 
TextLayoutBuilder.MeasureMode - Annotation Type in com.facebook.fbui.textlayoutbuilder
Measure mode constants similar to View.MeasureSpec

U

updateFromStyleResource(TextLayoutBuilder, Context, int) - Static method in class com.facebook.fbui.textlayoutbuilder.ResourceTextLayoutHelper
Sets the values for a TextLayoutBuilder from a style resource.
updateFromStyleResource(TextLayoutBuilder, Context, int, int) - Static method in class com.facebook.fbui.textlayoutbuilder.ResourceTextLayoutHelper
Sets the values for a TextLayoutBuilder from a style resource or a themed attribute.
updateFromStyleResource(TextLayoutBuilder, Context, AttributeSet, int, int) - Static method in class com.facebook.fbui.textlayoutbuilder.ResourceTextLayoutHelper
Sets the values for a TextLayoutBuilder from a style resource or a themed attribute.

W

warmLayout(Layout) - Method in class com.facebook.fbui.textlayoutbuilder.glyphwarmer.GlyphWarmerImpl
 
warmLayout(Layout) - Method in interface com.facebook.fbui.textlayoutbuilder.GlyphWarmer
Warms the text layout.
B C D G L M R S T U W 
Skip navigation links