From e1c4a0d2999b5e05aa1113b9d74bd56f95ab7b1b Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Thu, 5 Jun 2014 15:26:59 -0700 Subject: [PATCH] Make elegantTextHeight xml attribute public The elegantTextHeight attribute of TextView was made public through Java code, but the corresponding attribute wasn't public. This patch makes it so. This is a fix for bug 15428791 "elegantTextHeight is hidden (not in android.R.attr)" Change-Id: I7011f10ae58fd2e212da9cbaca4a484f011d8fed --- api/current.txt | 1 + core/java/android/widget/TextView.java | 3 +++ core/res/res/values/public.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/api/current.txt b/api/current.txt index 9b9f4adfcdd88..24c999d5b6236 100644 --- a/api/current.txt +++ b/api/current.txt @@ -490,6 +490,7 @@ package android { field public static final int editTextStyle = 16842862; // 0x101006e field public static final deprecated int editable = 16843115; // 0x101016b field public static final int editorExtras = 16843300; // 0x1010224 + field public static final int elegantTextHeight = 16843867; // 0x101045b field public static final int elevation = 16843843; // 0x1010443 field public static final int ellipsize = 16842923; // 0x10100ab field public static final int ems = 16843096; // 0x1010158 diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index a4a9680e09954..43c8ddeab2536 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -222,6 +222,7 @@ import static android.os.Build.VERSION_CODES.JELLY_BEAN_MR1; * @attr ref android.R.styleable#TextView_imeActionLabel * @attr ref android.R.styleable#TextView_imeActionId * @attr ref android.R.styleable#TextView_editorExtras + * @attr ref android.R.styleable#TextView_elegantTextHeight */ @RemoteView public class TextView extends View implements ViewTreeObserver.OnPreDrawListener { @@ -2637,6 +2638,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * metrics, and also increases top and bottom bounds to provide more space. * * @param elegant set the paint's elegant metrics flag. + * + * @attr ref android.R.styleable#TextView_elegantTextHeight */ public void setElegantTextHeight(boolean elegant) { mTextPaint.setElegantTextHeight(elegant); diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 88e1cda837d82..5d9f3e5d078f8 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2179,6 +2179,7 @@ +