Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -25208,6 +25208,7 @@ package android.widget { method public final android.content.res.ColorStateList getLinkTextColors(); method public final boolean getLinksClickable(); method public final android.text.method.MovementMethod getMovementMethod(); method public int getOffsetForPosition(float, float); method public android.text.TextPaint getPaint(); method public int getPaintFlags(); method public java.lang.String getPrivateImeOptions(); core/java/android/widget/TextView.java +2 −3 Original line number Diff line number Diff line Loading @@ -9721,14 +9721,13 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } /** * Get the offset character closest to the specified absolute position. * Get the character offset closest to the specified absolute position. A typical use case is to * pass the result of {@link MotionEvent#getX()} and {@link MotionEvent#getY()} to this method. * * @param x The horizontal absolute position of a point on screen * @param y The vertical absolute position of a point on screen * @return the character offset for the character whose position is closest to the specified * position. Returns -1 if there is no layout. * * @hide */ public int getOffsetForPosition(float x, float y) { if (getLayout() == null) return -1; Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -25208,6 +25208,7 @@ package android.widget { method public final android.content.res.ColorStateList getLinkTextColors(); method public final boolean getLinksClickable(); method public final android.text.method.MovementMethod getMovementMethod(); method public int getOffsetForPosition(float, float); method public android.text.TextPaint getPaint(); method public int getPaintFlags(); method public java.lang.String getPrivateImeOptions();
core/java/android/widget/TextView.java +2 −3 Original line number Diff line number Diff line Loading @@ -9721,14 +9721,13 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } /** * Get the offset character closest to the specified absolute position. * Get the character offset closest to the specified absolute position. A typical use case is to * pass the result of {@link MotionEvent#getX()} and {@link MotionEvent#getY()} to this method. * * @param x The horizontal absolute position of a point on screen * @param y The vertical absolute position of a point on screen * @return the character offset for the character whose position is closest to the specified * position. Returns -1 if there is no layout. * * @hide */ public int getOffsetForPosition(float x, float y) { if (getLayout() == null) return -1; Loading