Skip to content

Commit 0c245fb

Browse files
Fabrice Di MeglioAndroid (Google) Code Review
authored andcommitted
Merge "Make more TextView RTL APIs public"
2 parents 731f018 + d159109 commit 0c245fb

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

api/current.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27645,9 +27645,12 @@ package android.widget {
2764527645
method public final int getAutoLinkMask();
2764627646
method public int getCompoundDrawablePadding();
2764727647
method public android.graphics.drawable.Drawable[] getCompoundDrawables();
27648+
method public android.graphics.drawable.Drawable[] getCompoundDrawablesRelative();
2764827649
method public int getCompoundPaddingBottom();
27650+
method public int getCompoundPaddingEnd();
2764927651
method public int getCompoundPaddingLeft();
2765027652
method public int getCompoundPaddingRight();
27653+
method public int getCompoundPaddingStart();
2765127654
method public int getCompoundPaddingTop();
2765227655
method public final int getCurrentHintTextColor();
2765327656
method public final int getCurrentTextColor();
@@ -27690,8 +27693,10 @@ package android.widget {
2769027693
method public float getTextScaleX();
2769127694
method public float getTextSize();
2769227695
method public int getTotalPaddingBottom();
27696+
method public int getTotalPaddingEnd();
2769327697
method public int getTotalPaddingLeft();
2769427698
method public int getTotalPaddingRight();
27699+
method public int getTotalPaddingStart();
2769527700
method public int getTotalPaddingTop();
2769627701
method public final android.text.method.TransformationMethod getTransformationMethod();
2769727702
method public android.graphics.Typeface getTypeface();
@@ -27721,6 +27726,9 @@ package android.widget {
2772127726
method public final void setAutoLinkMask(int);
2772227727
method public void setCompoundDrawablePadding(int);
2772327728
method public void setCompoundDrawables(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
27729+
method public void setCompoundDrawablesRelative(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
27730+
method public void setCompoundDrawablesRelativeWithIntrinsicBounds(int, int, int, int);
27731+
method public void setCompoundDrawablesRelativeWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
2772427732
method public void setCompoundDrawablesWithIntrinsicBounds(int, int, int, int);
2772527733
method public void setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
2772627734
method public void setCursorVisible(boolean);

core/java/android/widget/TextView.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@
216216
* @attr ref android.R.styleable#TextView_drawableBottom
217217
* @attr ref android.R.styleable#TextView_drawableRight
218218
* @attr ref android.R.styleable#TextView_drawableLeft
219+
* @attr ref android.R.styleable#TextView_drawableStart
220+
* @attr ref android.R.styleable#TextView_drawableEnd
219221
* @attr ref android.R.styleable#TextView_drawablePadding
220222
* @attr ref android.R.styleable#TextView_lineSpacingExtra
221223
* @attr ref android.R.styleable#TextView_lineSpacingMultiplier
@@ -1520,8 +1522,6 @@ public int getCompoundPaddingRight() {
15201522
/**
15211523
* Returns the start padding of the view, plus space for the start
15221524
* Drawable if any.
1523-
*
1524-
* @hide
15251525
*/
15261526
public int getCompoundPaddingStart() {
15271527
resolveDrawables();
@@ -1537,8 +1537,6 @@ public int getCompoundPaddingStart() {
15371537
/**
15381538
* Returns the end padding of the view, plus space for the end
15391539
* Drawable if any.
1540-
*
1541-
* @hide
15421540
*/
15431541
public int getCompoundPaddingEnd() {
15441542
resolveDrawables();
@@ -1636,8 +1634,6 @@ public int getTotalPaddingRight() {
16361634
/**
16371635
* Returns the total start padding of the view, including the start
16381636
* Drawable if any.
1639-
*
1640-
* @hide
16411637
*/
16421638
public int getTotalPaddingStart() {
16431639
return getCompoundPaddingStart();
@@ -1646,8 +1642,6 @@ public int getTotalPaddingStart() {
16461642
/**
16471643
* Returns the total end padding of the view, including the end
16481644
* Drawable if any.
1649-
*
1650-
* @hide
16511645
*/
16521646
public int getTotalPaddingEnd() {
16531647
return getCompoundPaddingEnd();
@@ -1849,8 +1843,6 @@ public void setCompoundDrawablesWithIntrinsicBounds(Drawable left, Drawable top,
18491843
* @attr ref android.R.styleable#TextView_drawableTop
18501844
* @attr ref android.R.styleable#TextView_drawableEnd
18511845
* @attr ref android.R.styleable#TextView_drawableBottom
1852-
*
1853-
* @hide
18541846
*/
18551847
public void setCompoundDrawablesRelative(Drawable start, Drawable top,
18561848
Drawable end, Drawable bottom) {
@@ -1972,8 +1964,6 @@ public void setCompoundDrawablesRelative(Drawable start, Drawable top,
19721964
* @attr ref android.R.styleable#TextView_drawableTop
19731965
* @attr ref android.R.styleable#TextView_drawableEnd
19741966
* @attr ref android.R.styleable#TextView_drawableBottom
1975-
*
1976-
* @hide
19771967
*/
19781968
public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top, int end,
19791969
int bottom) {
@@ -1996,8 +1986,6 @@ public void setCompoundDrawablesRelativeWithIntrinsicBounds(int start, int top,
19961986
* @attr ref android.R.styleable#TextView_drawableTop
19971987
* @attr ref android.R.styleable#TextView_drawableEnd
19981988
* @attr ref android.R.styleable#TextView_drawableBottom
1999-
*
2000-
* @hide
20011989
*/
20021990
public void setCompoundDrawablesRelativeWithIntrinsicBounds(Drawable start, Drawable top,
20031991
Drawable end, Drawable bottom) {
@@ -2034,8 +2022,6 @@ public Drawable[] getCompoundDrawables() {
20342022

20352023
/**
20362024
* Returns drawables for the start, top, end, and bottom borders.
2037-
*
2038-
* @hide
20392025
*/
20402026
public Drawable[] getCompoundDrawablesRelative() {
20412027
final Drawables dr = mDrawables;

0 commit comments

Comments
 (0)