I'm migrating from AppCompatSeekBar
to material.slider.Slider
Removing the thumb on the SeekBar was easy using splitTrack="false"
.
How can I achieve the same with the Slider?
You can use the attributes:
app:haloRadius
app:thumbRadius
To avoid the halo you can use app:haloRadius
. Use 10dp
as the thumbRadius
:
<com.google.android.material.slider.Slider
app:haloRadius="10dp"
../>
You can also remove the thumb and the halo using the attribute app:thumbRadius="0dp"
<com.google.android.material.slider.Slider
app:thumbRadius="0dp"
app:haloRadius="0dp"
..../>