Seekbar where I can change both min max value with 2 thumbs
问题 I want to have a thumb for both min and max for my seekbar. You should be able to drag both thumbs independently. 回答1: Just use the RangeSlider in Material Components and the method setValues() <com.google.android.material.slider.RangeSlider android:id="@+id/slider" android:valueFrom="0" android:valueTo="10" ../> with: RangeSlider slider = findViewById(R.id.slider); slider.setValues(1.0f,5.0f); You can also use: <com.google.android.material.slider.RangeSlider android:id="@+id/slider" android