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:
build.gradle
:
- compile 'com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:1.1.0'+
compile 'com.facebook.fbui.textlayoutbuilder:textlayoutbuilder:1.2.0'
public class ResourceTextLayoutHelper -extends Object+extends Object
TextLayoutBuilder
from an Android resource.clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 @@
-
+
@Retention(value=SOURCE) +@Retention(value=SOURCE) public static @interface TextLayoutBuilder.MeasureModeMeasure mode constants similar toView.MeasureSpec
public class TextLayoutBuilder -extends Object+extends Object
Layout
s easily.
This class uses a Builder pattern to allow re-using the same object @@ -214,193 +214,246 @@
int
getBreakStrategy()
+float
getDensity()
int[]
getDrawableState()
TextUtils.TruncateAt
getEllipsize()
GlyphWarmer
getGlyphWarmer()
int
getHyphenationFrequency()
+boolean
getIncludeFontPadding()
int[]
getLeftIndents()
+int
getLinkColor()
int
getMaxEms()
int
getMaxLines()
int
getMaxWidth()
int
getMinEms()
int
getMinWidth()
int[]
getRightIndents()
+boolean
getShouldCacheLayout()
boolean
getShouldWarmText()
boolean
getSingleLine()
CharSequence
CharSequence
getText()
int
getTextColor()
TextDirectionHeuristicCompat
getTextDirection()
float
getTextSize()
float
getTextSpacingExtra()
float
getTextSpacingMultiplier()
Typeface
getTypeface()
TextLayoutBuilder
setAlignment(Layout.Alignment alignment)
TextLayoutBuilder
setBreakStrategy(int breakStrategy)
+TextLayoutBuilder
setDensity(float density)
+TextLayoutBuilder
setDrawableState(int[] drawableState)
TextLayoutBuilder
setEllipsize(TextUtils.TruncateAt ellipsize)
TextLayoutBuilder
setGlyphWarmer(GlyphWarmer glyphWarmer)
TextLayoutBuilder
setHyphenationFrequency(int hyphenationFrequency)
+TextLayoutBuilder
setIncludeFontPadding(boolean shouldInclude)
TextLayoutBuilder
setIndents(int[] leftIndents,
+ int[] rightIndents)
+TextLayoutBuilder
setLinkColor(int linkColor)
TextLayoutBuilder
setMaxEms(int maxEms)
TextLayoutBuilder
setMaxLines(int maxLines)
TextLayoutBuilder
setMaxWidth(int maxWidth)
TextLayoutBuilder
setMinEms(int minEms)
TextLayoutBuilder
setMinWidth(int minWidth)
TextLayoutBuilder
setShadowLayer(float radius,
float dx,
@@ -409,85 +462,85 @@ Method Summary
Sets the shadow layer for the layout.
TextLayoutBuilder
setShouldCacheLayout(boolean shouldCacheLayout)
TextLayoutBuilder
setShouldWarmText(boolean shouldWarmText)
TextLayoutBuilder
setSingleLine(boolean singleLine)
TextLayoutBuilder
setText(CharSequence text)
+setText(CharSequence text)
TextLayoutBuilder
setTextColor(ColorStateList colorStateList)
TextLayoutBuilder
setTextColor(int color)
TextLayoutBuilder
setTextDirection(TextDirectionHeuristicCompat textDirection)
TextLayoutBuilder
setTextSize(int size)
TextLayoutBuilder
setTextSpacingExtra(float spacingExtra)
TextLayoutBuilder
setTextSpacingMultiplier(float spacingMultiplier)
TextLayoutBuilder
setTextStyle(int style)
TextLayoutBuilder
setTypeface(Typeface typeface)
TextLayoutBuilder
setWidth(int width)
TextLayoutBuilder
setWidth(int width,
int measureMode)
@@ -499,8 +552,8 @@ clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -637,7 +690,7 @@ public CharSequence getText()+
public CharSequence getText()
public TextLayoutBuilder setText(CharSequence text)+
public TextLayoutBuilder setText(CharSequence text)
public int getBreakStrategy()+
public TextLayoutBuilder setBreakStrategy(int breakStrategy)+
breakStrategy
- The break strategy for breaking paragraphs into linesTextLayoutBuilder
instancepublic int getHyphenationFrequency()+
public TextLayoutBuilder setHyphenationFrequency(int hyphenationFrequency)+
hyphenationFrequency
- The frequency of automatic hyphenation to use for word breaksTextLayoutBuilder
instancepublic int[] getLeftIndents()+
public int[] getRightIndents()+
public TextLayoutBuilder setIndents(int[] leftIndents, + int[] rightIndents)+
+ 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.
leftIndents
- The left indents for the paragraphrightIndents
- The left indents for the paragraphTextLayoutBuilder
instancepublic float getDensity()+
public TextLayoutBuilder setDensity(float density)+
density
- The density desiredTextLayoutBuilder
public class GlyphWarmerImpl -extends Object +extends Object implements GlyphWarmer
GlyphWarmer
that runs a HandlerThread
to draw a text Layout
on a Picture
.
@@ -164,8 +164,8 @@ clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 @@
-
+
public class LayoutMeasureUtil -extends Object+extends Object
Layout
s.clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 @@
-
+