From 7c196e4ac7fb46d52dfbb74aeddbf83ff5306fb0 Mon Sep 17 00:00:00 2001 From: Sriram Ramasubramanian Date: Thu, 14 Dec 2017 22:28:12 -0800 Subject: [PATCH] v1.2.0 Release Summary: @public Version 1.2.0 Release. - Adds support for breakStrategy and hyphenationFrequency - Fixes AbsoluteSpan problems - Adds a sample app Reviewed By: xiphirx Differential Revision: D6577108 fbshipit-source-id: 8cebc26dd8f859dd6b0b837c6154e78fc7842ea9 --- README.md | 4 +- docs/index.html | 4 +- docs/javadoc/allclasses-frame.html | 4 +- docs/javadoc/allclasses-noframe.html | 4 +- .../fbui/textlayoutbuilder/GlyphWarmer.html | 4 +- .../ResourceTextLayoutHelper.html | 12 +- .../TextLayoutBuilder.MeasureMode.html | 6 +- .../textlayoutbuilder/TextLayoutBuilder.html | 303 ++++++++++++++---- .../glyphwarmer/GlyphWarmerImpl.html | 12 +- .../glyphwarmer/package-frame.html | 4 +- .../glyphwarmer/package-summary.html | 4 +- .../glyphwarmer/package-tree.html | 6 +- .../fbui/textlayoutbuilder/package-frame.html | 4 +- .../textlayoutbuilder/package-summary.html | 4 +- .../fbui/textlayoutbuilder/package-tree.html | 8 +- .../util/LayoutMeasureUtil.html | 12 +- .../textlayoutbuilder/util/package-frame.html | 4 +- .../util/package-summary.html | 4 +- .../textlayoutbuilder/util/package-tree.html | 6 +- docs/javadoc/constant-values.html | 4 +- docs/javadoc/deprecated-list.html | 4 +- docs/javadoc/help-doc.html | 4 +- docs/javadoc/index-all.html | 38 ++- docs/javadoc/index.html | 2 +- docs/javadoc/overview-frame.html | 4 +- docs/javadoc/overview-summary.html | 4 +- docs/javadoc/overview-tree.html | 8 +- gradle.properties | 2 +- library/libs/proxy/build.gradle | 2 +- library/libs/proxy/gradle.properties | 2 +- 30 files changed, 354 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index e97f641..e159946 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Download If using Gradle, add this to your `build.gradle`: ```groovy -compile 'com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:1.1.0' +compile 'com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:1.2.0' ``` or, if using Maven: @@ -25,7 +25,7 @@ or, if using Maven: com.facebook.fbui.textlayoutbuilder textlayoutbuilder - 1.1.0 + 1.2.0 aar ``` diff --git a/docs/index.html b/docs/index.html index b0f7479..4328b77 100644 --- a/docs/index.html +++ b/docs/index.html @@ -116,7 +116,7 @@

Download

diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.MeasureMode.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.MeasureMode.html index 54ec98c..6c7c16d 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.MeasureMode.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.MeasureMode.html @@ -2,9 +2,9 @@ - + TextLayoutBuilder.MeasureMode (TextLayoutBuilder API) - + @@ -92,7 +92,7 @@

Annotati


  • -
    @Retention(value=SOURCE)
    +
    @Retention(value=SOURCE)
     public static @interface TextLayoutBuilder.MeasureMode
    Measure mode constants similar to View.MeasureSpec
    diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.html index 1c328a1..e086336 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/TextLayoutBuilder.html @@ -2,9 +2,9 @@ - + TextLayoutBuilder (TextLayoutBuilder API) - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -96,7 +96,7 @@

    Class TextLayoutBuilder

    An utility class to create text Layouts easily.

    This class uses a Builder pattern to allow re-using the same object @@ -214,193 +214,246 @@

    Method Summary

    +int +getBreakStrategy() +
    Returns the break strategy for this TextLayoutBuilder.
    + + + +float +getDensity()  + + int[] getDrawableState()
    Returns the drawable state for this TextLayoutBuilder.
    - + TextUtils.TruncateAt getEllipsize()
    Returns the text ellipsize for this TextLayoutBuilder.
    - + GlyphWarmer getGlyphWarmer()
    Returns the GlyphWarmer used by the TextLayoutBuilder.
    - + +int +getHyphenationFrequency() +
    Returns the hyphenation frequency for this TextLayoutBuilder.
    + + + boolean getIncludeFontPadding()
    Returns whether this TextLayoutBuilder should include font padding.
    - + +int[] +getLeftIndents() +
    Returns the left indents set on this TextLayoutBuilder.
    + + + int getLinkColor()
    Returns the link color for this TextLayoutBuilder.
    - + int getMaxEms()
    Returns the max width expressed in ems.
    - + int getMaxLines()
    Returns the number of max lines used by this TextLayoutBuilder.
    - + int getMaxWidth()
    Returns the max width expressed in pixels.
    - + int getMinEms()
    Returns the min width expressed in ems.
    - + int getMinWidth()
    Returns the min width expressed in pixels.
    - + +int[] +getRightIndents() +
    Returns the right indents set on this TextLayoutBuilder.
    + + + boolean getShouldCacheLayout()
    Returns whether the TextLayoutBuilder should cache the layout.
    - + boolean getShouldWarmText()
    Returns whether the TextLayoutBuilder should warm the layout.
    - + boolean getSingleLine()
    Returns whether the TextLayoutBuilder should show a single line.
    - -CharSequence + +CharSequence getText()
    Returns the text that would be packed in a layout by this TextLayoutBuilder.
    - + int getTextColor()
    Returns the text color for this TextLayoutBuilder.
    - + TextDirectionHeuristicCompat getTextDirection()
    Returns the text direction for this TextLayoutBuilder.
    - + float getTextSize()
    Returns the text size for this TextLayoutBuilder.
    - + float getTextSpacingExtra()
    Returns the text spacing extra for this TextLayoutBuilder.
    - + float getTextSpacingMultiplier()
    Returns the text spacing multiplier for this TextLayoutBuilder.
    - + Typeface getTypeface()
    Returns the typeface for this TextLayoutBuilder.
    - + TextLayoutBuilder setAlignment(Layout.Alignment alignment)
    Sets text alignment for the layout.
    - + +TextLayoutBuilder +setBreakStrategy(int breakStrategy) +
    Sets a break strategy breaking paragraphs into lines.
    + + + +TextLayoutBuilder +setDensity(float density) +
    Sets the density of this layout.
    + + + TextLayoutBuilder setDrawableState(int[] drawableState)
    Updates the text colors based on the drawable state.
    - + TextLayoutBuilder setEllipsize(TextUtils.TruncateAt ellipsize)
    Sets the ellipsis location for the layout.
    - + TextLayoutBuilder setGlyphWarmer(GlyphWarmer glyphWarmer)
    Sets the glyph warmer to use.
    - + +TextLayoutBuilder +setHyphenationFrequency(int hyphenationFrequency) +
    Sets the frequency of automatic hyphenation to use when determining word breaks.
    + + + TextLayoutBuilder setIncludeFontPadding(boolean shouldInclude)
    Set whether the text Layout includes extra top and bottom padding to make room for accents that go above the normal ascent and descent.
    - + +TextLayoutBuilder +setIndents(int[] leftIndents, + int[] rightIndents) +
    Sets the left and right indents for this TextLayoutBuilder.
    + + + TextLayoutBuilder setLinkColor(int linkColor)
    Sets the link color for the text in the layout.
    - + TextLayoutBuilder setMaxEms(int maxEms)
    Sets the max width expressed in ems.
    - + TextLayoutBuilder setMaxLines(int maxLines)
    Sets a maximum number of lines to be shown by the Layout.
    - + TextLayoutBuilder setMaxWidth(int maxWidth)
    Sets the max width expressed in pixels.
    - + TextLayoutBuilder setMinEms(int minEms)
    Sets the min width expressed in ems.
    - + TextLayoutBuilder setMinWidth(int minWidth)
    Sets the min width expressed in pixels.
    - + TextLayoutBuilder setShadowLayer(float radius, float dx, @@ -409,85 +462,85 @@

    Method Summary

    Sets the shadow layer for the layout.
    - + TextLayoutBuilder setShouldCacheLayout(boolean shouldCacheLayout)
    Sets whether the text layout should be cached or not.
    - + TextLayoutBuilder setShouldWarmText(boolean shouldWarmText)
    Sets whether the text should be warmed or not.
    - + TextLayoutBuilder setSingleLine(boolean singleLine)
    Sets whether the text should be in a single line or not.
    - + TextLayoutBuilder -setText(CharSequence text) +setText(CharSequence text)
    Sets the text for the layout.
    - + TextLayoutBuilder setTextColor(ColorStateList colorStateList)
    Sets the text color for the layout.
    - + TextLayoutBuilder setTextColor(int color)
    Sets the text color for the layout.
    - + TextLayoutBuilder setTextDirection(TextDirectionHeuristicCompat textDirection)
    Sets the text direction heuristic for the layout.
    - + TextLayoutBuilder setTextSize(int size)
    Sets the text size for the layout.
    - + TextLayoutBuilder setTextSpacingExtra(float spacingExtra)
    Sets the text extra spacing for the layout.
    - + TextLayoutBuilder setTextSpacingMultiplier(float spacingMultiplier)
    Sets the line spacing multiplier for the layout.
    - + TextLayoutBuilder setTextStyle(int style)
    Sets a text style for the layout.
    - + TextLayoutBuilder setTypeface(Typeface typeface)
    Sets the typeface used by this TextLayoutBuilder.
    - + TextLayoutBuilder setWidth(int width)
    Sets the intended width of the text layout.
    - + TextLayoutBuilder setWidth(int width, int measureMode) @@ -499,8 +552,8 @@

    Method Summary

  • -

    Methods inherited from class java.lang.Object

    -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • +

    Methods inherited from class java.lang.Object

    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -637,7 +690,7 @@

    setWidth

    • getText

      -
      public CharSequence getText()
      +
      public CharSequence getText()
      Returns the text that would be packed in a layout by this TextLayoutBuilder.
      Returns:
      @@ -651,7 +704,7 @@

      getText

      + + + +
        +
      • +

        getBreakStrategy

        +
        public int getBreakStrategy()
        +
        Returns the break strategy for this TextLayoutBuilder.
        +
        +
        Returns:
        +
        The break strategy for this TextLayoutBuilder
        +
        +
      • +
      + + + +
        +
      • +

        setBreakStrategy

        +
        public TextLayoutBuilder setBreakStrategy(int breakStrategy)
        +
        Sets a break strategy breaking paragraphs into lines.
        +
        +
        Parameters:
        +
        breakStrategy - The break strategy for breaking paragraphs into lines
        +
        Returns:
        +
        This TextLayoutBuilder instance
        +
        +
      • +
      + + + +
        +
      • +

        getHyphenationFrequency

        +
        public int getHyphenationFrequency()
        +
        Returns the hyphenation frequency for this TextLayoutBuilder.
        +
        +
        Returns:
        +
        The hyphenation frequency for this TextLayoutBuilder
        +
        +
      • +
      + + + +
        +
      • +

        setHyphenationFrequency

        +
        public TextLayoutBuilder setHyphenationFrequency(int hyphenationFrequency)
        +
        Sets the frequency of automatic hyphenation to use when determining word breaks.
        +
        +
        Parameters:
        +
        hyphenationFrequency - The frequency of automatic hyphenation to use for word breaks
        +
        Returns:
        +
        This TextLayoutBuilder instance
        +
        +
      • +
      + + + +
        +
      • +

        getLeftIndents

        +
        public int[] getLeftIndents()
        +
        Returns the left indents set on this TextLayoutBuilder.
        +
        +
        Returns:
        +
        The left indents set on this TextLayoutBuilder
        +
        +
      • +
      + + + +
        +
      • +

        getRightIndents

        +
        public int[] getRightIndents()
        +
        Returns the right indents set on this TextLayoutBuilder.
        +
        +
        Returns:
        +
        The right indents set on this TextLayoutBuilder
        +
        +
      • +
      + + + +
        +
      • +

        setIndents

        +
        public TextLayoutBuilder setIndents(int[] leftIndents,
        +                                    int[] rightIndents)
        +
        Sets the left and right indents for this TextLayoutBuilder. +

        + The arrays hold an indent amount, one per line, measured in pixels. + For lines past the last element in the array, the last element repeats.

        +
        +
        Parameters:
        +
        leftIndents - The left indents for the paragraph
        +
        rightIndents - The left indents for the paragraph
        +
        Returns:
        +
        This TextLayoutBuilder instance
        +
        +
      • +
      @@ -1357,6 +1519,35 @@

      setMaxWidth

    + + + +
      +
    • +

      getDensity

      +
      public float getDensity()
      +
      +
      Returns:
      +
      The density of this layout. If unset, defaults to 1.0
      +
      +
    • +
    + + + +
      +
    • +

      setDensity

      +
      public TextLayoutBuilder setDensity(float density)
      +
      Sets the density of this layout. This should typically be set to your current display's density
      +
      +
      Parameters:
      +
      density - The density desired
      +
      Returns:
      +
      This TextLayoutBuilder
      +
      +
    • +
    diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/GlyphWarmerImpl.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/GlyphWarmerImpl.html index cc2f919..26a28f9 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/GlyphWarmerImpl.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/GlyphWarmerImpl.html @@ -2,9 +2,9 @@ - + GlyphWarmerImpl (TextLayoutBuilder API) - + @@ -96,7 +96,7 @@

    Class GlyphWarmerImpl

    diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-frame.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-frame.html index 7edcf5a..b7d608a 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-frame.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-frame.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.glyphwarmer (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-summary.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-summary.html index 8aed000..fab94b4 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-summary.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-summary.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.glyphwarmer (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-tree.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-tree.html index aa45fcb..be21d4e 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-tree.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/glyphwarmer/package-tree.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.glyphwarmer Class Hierarchy (TextLayoutBuilder API) - + @@ -78,7 +78,7 @@

    Hierarchy For Package com.facebook.fbui.textlayoutbuilder.glyp

    Class Hierarchy

      -
    • java.lang.Object +
    • java.lang.Object diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-frame.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-frame.html index ce5510f..5b7b8ac 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-frame.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-frame.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-summary.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-summary.html index bb433a4..f0dc021 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-summary.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-summary.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-tree.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-tree.html index 7686681..24558e5 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-tree.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/package-tree.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder Class Hierarchy (TextLayoutBuilder API) - + @@ -78,7 +78,7 @@

      Hierarchy For Package com.facebook.fbui.textlayoutbuilder

      Class Hierarchy

      diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/LayoutMeasureUtil.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/LayoutMeasureUtil.html index d110068..6efa8c0 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/LayoutMeasureUtil.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/LayoutMeasureUtil.html @@ -2,9 +2,9 @@ - + LayoutMeasureUtil (TextLayoutBuilder API) - + @@ -96,7 +96,7 @@

      Class LayoutMeasureUtil

    diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-frame.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-frame.html index 649ad24..0eb592e 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-frame.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-frame.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.util (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-summary.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-summary.html index 689b9e3..da5bf1f 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-summary.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-summary.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.util (TextLayoutBuilder API) - + diff --git a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-tree.html b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-tree.html index 39692af..27d09e0 100644 --- a/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-tree.html +++ b/docs/javadoc/com/facebook/fbui/textlayoutbuilder/util/package-tree.html @@ -2,9 +2,9 @@ - + com.facebook.fbui.textlayoutbuilder.util Class Hierarchy (TextLayoutBuilder API) - + @@ -78,7 +78,7 @@

    Hierarchy For Package com.facebook.fbui.textlayoutbuilder.util

    Class Hierarchy

      -
    • java.lang.Object +
    • java.lang.Object diff --git a/docs/javadoc/constant-values.html b/docs/javadoc/constant-values.html index 0efb1f0..9fe0743 100644 --- a/docs/javadoc/constant-values.html +++ b/docs/javadoc/constant-values.html @@ -2,9 +2,9 @@ - + Constant Field Values (TextLayoutBuilder API) - + diff --git a/docs/javadoc/deprecated-list.html b/docs/javadoc/deprecated-list.html index 5fced9e..0a9f2a1 100644 --- a/docs/javadoc/deprecated-list.html +++ b/docs/javadoc/deprecated-list.html @@ -2,9 +2,9 @@ - + Deprecated List (TextLayoutBuilder API) - + diff --git a/docs/javadoc/help-doc.html b/docs/javadoc/help-doc.html index fa6fb62..2a60c62 100644 --- a/docs/javadoc/help-doc.html +++ b/docs/javadoc/help-doc.html @@ -2,9 +2,9 @@ - + API Help (TextLayoutBuilder API) - + diff --git a/docs/javadoc/index-all.html b/docs/javadoc/index-all.html index a7a58ce..aa52c2f 100644 --- a/docs/javadoc/index-all.html +++ b/docs/javadoc/index-all.html @@ -2,9 +2,9 @@ - + Index (TextLayoutBuilder API) - + @@ -113,6 +113,12 @@

      G

      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.
      @@ -130,10 +136,18 @@

      G

      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.
      @@ -158,6 +172,10 @@

      G

      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.
      @@ -260,6 +278,14 @@

      S

      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.
      @@ -272,11 +298,19 @@

      S

      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.
      diff --git a/docs/javadoc/index.html b/docs/javadoc/index.html index 16d6c9a..1cab4e6 100644 --- a/docs/javadoc/index.html +++ b/docs/javadoc/index.html @@ -2,7 +2,7 @@ - + TextLayoutBuilder API diff --git a/docs/javadoc/overview-summary.html b/docs/javadoc/overview-summary.html index c2b7c47..1ef2f9f 100644 --- a/docs/javadoc/overview-summary.html +++ b/docs/javadoc/overview-summary.html @@ -2,9 +2,9 @@ - + Overview (TextLayoutBuilder API) - + diff --git a/docs/javadoc/overview-tree.html b/docs/javadoc/overview-tree.html index ebae009..25fbc3e 100644 --- a/docs/javadoc/overview-tree.html +++ b/docs/javadoc/overview-tree.html @@ -2,9 +2,9 @@ - + Class Hierarchy (TextLayoutBuilder API) - + @@ -80,7 +80,7 @@

      Hierarchy For All Packages

      Class Hierarchy

      diff --git a/gradle.properties b/gradle.properties index f34c321..02aa6e6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.facebook.fbui.textlayoutbuilder -VERSION_NAME=1.2.0-SNAPSHOT +VERSION_NAME=1.2.0 POM_NAME=TextLayoutBuilder POM_DESCRIPTION=Better way to create text Layouts on Android diff --git a/library/libs/proxy/build.gradle b/library/libs/proxy/build.gradle index 0d6d727..a0de360 100644 --- a/library/libs/proxy/build.gradle +++ b/library/libs/proxy/build.gradle @@ -10,7 +10,7 @@ targetCompatibility = 1.7 jar { baseName = 'staticlayout-proxy' - version = '1.0' + version = '1.2' } task sourcesJar(type: Jar, dependsOn: classes) { diff --git a/library/libs/proxy/gradle.properties b/library/libs/proxy/gradle.properties index 3cd5dad..74dd5ac 100644 --- a/library/libs/proxy/gradle.properties +++ b/library/libs/proxy/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.facebook.fbui.textlayoutbuilder -VERSION_NAME=1.2-SNAPSHOT +VERSION_NAME=1.2 POM_NAME=StaticLayoutProxy POM_DESCRIPTION=Helper to access hidden StaticLayout constructor in Android