From 78b532c420caf06dfe4c99dbd7b95a5d1f86b1a0 Mon Sep 17 00:00:00 2001 From: conradchen Date: Thu, 3 Mar 2022 16:06:41 -0500 Subject: [PATCH] [Slider] Refine javadocs of thumb radius setters PiperOrigin-RevId: 432265042 --- .../android/material/slider/BaseSlider.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/java/com/google/android/material/slider/BaseSlider.java b/lib/java/com/google/android/material/slider/BaseSlider.java index da07ec0f2ac..fd4d6771a09 100644 --- a/lib/java/com/google/android/material/slider/BaseSlider.java +++ b/lib/java/com/google/android/material/slider/BaseSlider.java @@ -1016,7 +1016,10 @@ public void setThumbElevationResource(@DimenRes int elevation) { } /** - * Returns the radius of the thumb. + * Returns the radius of the thumb. Note that setting this will also affect custom drawables set + * through {@link #setCustomThumbDrawable(int)}, {@link #setCustomThumbDrawable(Drawable)}, + * {@link #setCustomThumbDrawablesForValues(int...)}, and + * {@link #setCustomThumbDrawablesForValues(Drawable...)}. * * @see #setThumbRadius(int) * @see #setThumbRadiusResource(int) @@ -1028,7 +1031,10 @@ public int getThumbRadius() { } /** - * Sets the radius of the thumb in pixels. + * Sets the radius of the thumb in pixels. Note that setting this will also affect custom + * drawables set through {@link #setCustomThumbDrawable(int)}, + * {@link #setCustomThumbDrawable(Drawable)}, {@link #setCustomThumbDrawablesForValues(int...)}, + * and {@link #setCustomThumbDrawablesForValues(Drawable...)}. * * @see #getThumbRadius() * @attr ref com.google.android.material.R.styleable#Slider_thumbRadius @@ -1056,7 +1062,10 @@ public void setThumbRadius(@IntRange(from = 0) @Dimension int radius) { } /** - * Sets the radius of the thumb from a dimension resource. + * Sets the radius of the thumb from a dimension resource. Note that setting this will also affect + * custom drawables set through {@link #setCustomThumbDrawable(int)}, + * {@link #setCustomThumbDrawable(Drawable)}, {@link #setCustomThumbDrawablesForValues(int...)}, + * and {@link #setCustomThumbDrawablesForValues(Drawable...)}. * * @see #getThumbRadius() * @attr ref com.google.android.material.R.styleable#Slider_thumbRadius