Loading core/java/android/widget/EditText.java +6 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,12 @@ public class EditText extends TextView { return EditText.class.getName(); } /** @hide */ @Override protected boolean supportsAutoSizeText() { return false; } /** @hide */ @Override public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) { Loading core/java/android/widget/TextView.java +11 −3 Original line number Diff line number Diff line Loading @@ -1534,7 +1534,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } // Setup auto-size. if (mEditor == null) { if (supportsAutoSizeText()) { switch (mAutoSizeType) { case AUTO_SIZE_TYPE_NONE: // Nothing to do. Loading Loading @@ -9261,14 +9261,22 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } /** * @return true if this TextView is specialized for showing and interacting with the extracted * text in a full-screen input method. * @return {@code true} if this TextView is specialized for showing and interacting with the * extracted text in a full-screen input method. * @hide */ public boolean isInExtractedMode() { return false; } /** * @return {@code true} if this TextView supports autosizing text to fit within its container. * @hide */ protected boolean supportsAutoSizeText() { return true; } /** * This is a temporary method. Future versions may support multi-locale text. * Caveat: This method may not return the latest spell checker locale, but this should be Loading Loading
core/java/android/widget/EditText.java +6 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,12 @@ public class EditText extends TextView { return EditText.class.getName(); } /** @hide */ @Override protected boolean supportsAutoSizeText() { return false; } /** @hide */ @Override public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) { Loading
core/java/android/widget/TextView.java +11 −3 Original line number Diff line number Diff line Loading @@ -1534,7 +1534,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } // Setup auto-size. if (mEditor == null) { if (supportsAutoSizeText()) { switch (mAutoSizeType) { case AUTO_SIZE_TYPE_NONE: // Nothing to do. Loading Loading @@ -9261,14 +9261,22 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } /** * @return true if this TextView is specialized for showing and interacting with the extracted * text in a full-screen input method. * @return {@code true} if this TextView is specialized for showing and interacting with the * extracted text in a full-screen input method. * @hide */ public boolean isInExtractedMode() { return false; } /** * @return {@code true} if this TextView supports autosizing text to fit within its container. * @hide */ protected boolean supportsAutoSizeText() { return true; } /** * This is a temporary method. Future versions may support multi-locale text. * Caveat: This method may not return the latest spell checker locale, but this should be Loading