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

Commit 81b07150 authored by Haoyu Zhang's avatar Haoyu Zhang Committed by Android (Google) Code Review
Browse files

Merge "Add public API TextView.isHorizontallyScrolling"

parents cfd007e8 ba75b555
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -56358,6 +56358,7 @@ package android.widget {
    method public boolean isCursorVisible();
    method public boolean isElegantTextHeight();
    method public boolean isFallbackLineSpacing();
    method public final boolean isHorizontallyScrolling();
    method public boolean isInputMethodTarget();
    method public boolean isSingleLine();
    method public boolean isSuggestionsEnabled();
+14 −3
Original line number Diff line number Diff line
@@ -719,7 +719,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    @ViewDebug.ExportedProperty(category = "text")
    @UnsupportedAppUsage
    private int mGravity = Gravity.TOP | Gravity.START;
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private boolean mHorizontallyScrolling;

    private int mAutoLinkMask;
@@ -5095,13 +5095,24 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }

    /**
     * Returns whether the text is allowed to be wider than the View is.
     * Returns whether the text is allowed to be wider than the View.
     * If false, the text will be wrapped to the width of the View.
     *
     * @attr ref android.R.styleable#TextView_scrollHorizontally
     * @see #setHorizontallyScrolling(boolean)
     */
    public final boolean isHorizontallyScrolling() {
        return mHorizontallyScrolling;
    }

    /**
     * Returns whether the text is allowed to be wider than the View.
     * If false, the text will be wrapped to the width of the View.
     *
     * @attr ref android.R.styleable#TextView_scrollHorizontally
     * @hide
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    public boolean getHorizontallyScrolling() {
        return mHorizontallyScrolling;
    }