Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67818f9f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Explain the difference between setBreakStragegy() and...

Merge "Explain the difference between setBreakStragegy() and setLineBreakStyle() in API doc" into tm-dev am: 2b868683 am: 4e9b6a38 am: e0d6f903 am: 3c7b2c3f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18769766



Change-Id: I93eefec1b916f5fcfcf98815b2b68c881bf0e5a0
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents c58eb89e 3c7b2c3f
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -4791,12 +4791,19 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * TextView is {@link Layout#BREAK_STRATEGY_HIGH_QUALITY}, and the default value for
     * EditText is {@link Layout#BREAK_STRATEGY_SIMPLE}, the latter to avoid the
     * text "dancing" when being edited.
     * <p/>
     * <p>
     * Enabling hyphenation with either using {@link Layout#HYPHENATION_FREQUENCY_NORMAL} or
     * {@link Layout#HYPHENATION_FREQUENCY_FULL} while line breaking is set to one of
     * {@link Layout#BREAK_STRATEGY_BALANCED}, {@link Layout#BREAK_STRATEGY_HIGH_QUALITY}
     * improves the structure of text layout however has performance impact and requires more time
     * to do the text layout.
     * to do the text layout.</p>
     * <p>
     * Compared with {@link #setLineBreakStyle(int)}, line break style with different strictness is
     * evaluated in the ICU to identify the potential breakpoints. In
     * {@link #setBreakStrategy(int)}, line break strategy handles the post processing of ICU's line
     * break result. It aims to evaluate ICU's breakpoints and break the lines based on the
     * constraint.
     * </p>
     *
     * @attr ref android.R.styleable#TextView_breakStrategy
     * @see #getBreakStrategy()