Skip to content

Commit

Permalink
[Slider] Refine javadocs of thumb radius setters
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 432265042
  • Loading branch information
drchen authored and afohrman committed Mar 4, 2022
1 parent 1085583 commit 78b532c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/java/com/google/android/material/slider/BaseSlider.java
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 78b532c

Please sign in to comment.