@@ -292,30 +292,31 @@ slider also has tick marks.
292292
293293#### Track attributes
294294
295- | Element | Attribute | Related method(s) | Default value |
296- | --------------------------------------------| ------------------------------| -------------------------------------------------------------| --------------------------------------|
297- | ** Orientation** | ` android:orientation ` | ` setOrientation ` <br />` isVertical ` | ` horizontal ` |
298- | ** Centered** | ` android:centered ` | ` setCentered ` <br />` isCentered ` | ` false ` |
299- | ** Min value** | ` android:valueFrom ` | ` setValueFrom ` <br />` getValueFrom ` | N/A |
300- | ** Max value** | ` android:valueTo ` | ` setValueTo ` <br />` getValueTo ` | N/A |
301- | ** Step size (discrete)** | ` android:stepSize ` | ` setStepSize ` <br />` getStepSize ` | N/A |
302- | ** Initial selected value (Slider)** | ` android:value ` | ` setValue ` <br />` getValue ` | N/A |
303- | ** Initial selected values (RangeSlider)** | ` app:values ` | ` setValues ` <br />` getValues ` | N/A |
304- | ** Height** | ` app:trackHeight ` | ` setTrackHeight ` <br />` getTrackHeight ` | ` 16dp ` |
305- | ** Color** | ` app:trackColor ` | ` setTrackTintList ` <br />` getTrackTintList ` | ` null ` |
306- | ** Color for track's active part** | ` app:trackColorActive ` | ` setTrackActiveTintList ` <br />` getTrackActiveTintList ` | ` ?attr/colorPrimary ` |
307- | ** Color for track's inactive part** | ` app:trackColorInactive ` | ` setTrackInactiveTintList ` <br />` getTrackInactiveTintList ` | ` ?attr/colorSurfaceContainerHighest ` |
308- | ** Corner size** | ` app:trackCornerSize ` | ` setTrackCornerSize ` <br />` getTrackCornerSize ` | ` trackHeight / 2 ` |
309- | ** Inside corner size** | ` app:trackInsideCornerSize ` | ` setTrackInsideCornerSize ` <br />` getTrackInsideCornerSize ` | ` 2dp ` |
310- | ** Stop indicator size** | ` app:trackStopIndicatorSize ` | ` setTrackStopIndicatorSize ` <br />` getTrackStopIndicatorSize ` | ` 4dp ` |
311- | ** Minimum separation for adjacent thumbs** | ` app:minSeparation ` | ` setMinSeparation ` <br />` getMinSeparation ` | ` 0dp ` |
312- | ** Active start icon** | ` app:trackIconActiveStart ` | ` setTrackIconActiveStart ` <br />` getTrackIconActiveStart ` | ` null ` |
313- | ** Active end icon** | ` app:trackIconActiveEnd ` | ` setTrackIconActiveEnd ` <br />` getTrackIconActiveEnd ` | ` null ` |
314- | ** Active icon color** | ` app:trackIconActiveColor ` | ` setTrackIconActiveColor ` <br />` getTrackIconActiveColor ` | N/A |
315- | ** Inactive start icon** | ` app:trackIconInactiveStart ` | ` setTrackIconInactiveStart ` <br />` getTrackIconInactiveStart ` | ` null ` |
316- | ** Inactive end icon** | ` app:trackIconInactiveEnd ` | ` setTrackIconInactiveEnd ` <br />` getTrackIconInactiveEnd ` | ` null ` |
317- | ** Inactive icon color** | ` app:trackIconInactiveColor ` | ` setTrackIconInactiveColor ` <br />` getTrackIconInactiveColor ` | N/A |
318- | ** Icon size** | ` app:trackIconSize ` | ` setTrackIconSize ` <br />` getTrackIconSize ` | N/A |
295+ | Element | Attribute | Related method(s) | Default value |
296+ | --------------------------------------------| -------------------------------| ----------------------------------------------------------------| --------------------------------------|
297+ | ** Orientation** | ` android:orientation ` | ` setOrientation ` <br />` isVertical ` | ` horizontal ` |
298+ | ** Min value** | ` android:valueFrom ` | ` setValueFrom ` <br />` getValueFrom ` | N/A |
299+ | ** Max value** | ` android:valueTo ` | ` setValueTo ` <br />` getValueTo ` | N/A |
300+ | ** Step size (discrete)** | ` android:stepSize ` | ` setStepSize ` <br />` getStepSize ` | N/A |
301+ | ** Initial selected value (Slider)** | ` android:value ` | ` setValue ` <br />` getValue ` | N/A |
302+ | ** Initial selected values (RangeSlider)** | ` app:values ` | ` setValues ` <br />` getValues ` | N/A |
303+ | ** Centered** | ` app:centered ` | ` setCentered ` <br />` isCentered ` | ` false ` |
304+ | ** Continuous mode tick count** | ` app:continuousModeTickCount ` | ` setContinuousModeTickCount ` <br />` getContinuousModeTickCount ` | 0 |
305+ | ** Height** | ` app:trackHeight ` | ` setTrackHeight ` <br />` getTrackHeight ` | ` 16dp ` |
306+ | ** Color** | ` app:trackColor ` | ` setTrackTintList ` <br />` getTrackTintList ` | ` null ` |
307+ | ** Color for track's active part** | ` app:trackColorActive ` | ` setTrackActiveTintList ` <br />` getTrackActiveTintList ` | ` ?attr/colorPrimary ` |
308+ | ** Color for track's inactive part** | ` app:trackColorInactive ` | ` setTrackInactiveTintList ` <br />` getTrackInactiveTintList ` | ` ?attr/colorSurfaceContainerHighest ` |
309+ | ** Corner size** | ` app:trackCornerSize ` | ` setTrackCornerSize ` <br />` getTrackCornerSize ` | ` trackHeight / 2 ` |
310+ | ** Inside corner size** | ` app:trackInsideCornerSize ` | ` setTrackInsideCornerSize ` <br />` getTrackInsideCornerSize ` | ` 2dp ` |
311+ | ** Stop indicator size** | ` app:trackStopIndicatorSize ` | ` setTrackStopIndicatorSize ` <br />` getTrackStopIndicatorSize ` | ` 4dp ` |
312+ | ** Minimum separation for adjacent thumbs** | ` app:minSeparation ` | ` setMinSeparation ` <br />` getMinSeparation ` | ` 0dp ` |
313+ | ** Active start icon** | ` app:trackIconActiveStart ` | ` setTrackIconActiveStart ` <br />` getTrackIconActiveStart ` | ` null ` |
314+ | ** Active end icon** | ` app:trackIconActiveEnd ` | ` setTrackIconActiveEnd ` <br />` getTrackIconActiveEnd ` | ` null ` |
315+ | ** Active icon color** | ` app:trackIconActiveColor ` | ` setTrackIconActiveColor ` <br />` getTrackIconActiveColor ` | N/A |
316+ | ** Inactive start icon** | ` app:trackIconInactiveStart ` | ` setTrackIconInactiveStart ` <br />` getTrackIconInactiveStart ` | ` null ` |
317+ | ** Inactive end icon** | ` app:trackIconInactiveEnd ` | ` setTrackIconInactiveEnd ` <br />` getTrackIconInactiveEnd ` | ` null ` |
318+ | ** Inactive icon color** | ` app:trackIconInactiveColor ` | ` setTrackIconInactiveColor ` <br />` getTrackIconInactiveColor ` | N/A |
319+ | ** Icon size** | ` app:trackIconSize ` | ` setTrackIconSize ` <br />` getTrackIconSize ` | N/A |
319320
320321** Note:** ` app:trackColor ` takes precedence over ` app:trackColorActive ` and
321322` app:trackColorInative ` . It's a shorthand for setting both values to the same
0 commit comments