Loading core/java/android/widget/TextView.java +9 −2 Original line number Diff line number Diff line Loading @@ -2439,8 +2439,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * Subclasses override this to specify a default movement method. */ protected MovementMethod getDefaultMovementMethod() { if (isFocusable() || isFocusableInTouchMode()) { return ArrowKeyMovementMethod.getInstance(); } else { return null; } } /** * Return the text that TextView is displaying. If {@link #setText(CharSequence)} was called Loading Loading @@ -2654,9 +2658,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * Gets the {@link android.text.method.MovementMethod} being used for this TextView, * which provides positioning, scrolling, and text selection functionality. * This will frequently be null for non-EditText TextViews. * By default, this returns an instance of {@link android.text.method.ArrowKeyMovementMethod} * if this View is focusable or focusable in touch mode. * * @return the movement method being used for this TextView. * @see android.text.method.MovementMethod * @see android.text.method.ArrowKeyMovementMethod */ public final MovementMethod getMovementMethod() { return mMovement; Loading Loading
core/java/android/widget/TextView.java +9 −2 Original line number Diff line number Diff line Loading @@ -2439,8 +2439,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * Subclasses override this to specify a default movement method. */ protected MovementMethod getDefaultMovementMethod() { if (isFocusable() || isFocusableInTouchMode()) { return ArrowKeyMovementMethod.getInstance(); } else { return null; } } /** * Return the text that TextView is displaying. If {@link #setText(CharSequence)} was called Loading Loading @@ -2654,9 +2658,12 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * Gets the {@link android.text.method.MovementMethod} being used for this TextView, * which provides positioning, scrolling, and text selection functionality. * This will frequently be null for non-EditText TextViews. * By default, this returns an instance of {@link android.text.method.ArrowKeyMovementMethod} * if this View is focusable or focusable in touch mode. * * @return the movement method being used for this TextView. * @see android.text.method.MovementMethod * @see android.text.method.ArrowKeyMovementMethod */ public final MovementMethod getMovementMethod() { return mMovement; Loading