From 193879a8b6ecd3d4d5679493a742a9648f27aa4c Mon Sep 17 00:00:00 2001 From: Mark Lu Date: Tue, 30 Aug 2016 17:36:52 -0700 Subject: [PATCH] docs: Add param info to TextView.setTextColor Bug: 6617101 --- core/java/android/widget/TextView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 5cbd2841b57a3..6faa2eb95cc1a 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -3234,6 +3234,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * Sets the text color for all the states (normal, selected, * focused) to be this color. * + * @param color A color value in the form 0xAARRGGBB. + * Do not pass a resource ID. To get a color value from a resource ID, call + * {@link android.support.v4.content.ContextCompat#getColor(Context, int) getColor}. + * * @see #setTextColor(ColorStateList) * @see #getTextColors() *