rangeseekbar

Seekbar where I can change both min max value with 2 thumbs

≡放荡痞女 提交于 2020-11-29 09:11:00
问题 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

RangeSeekBarView how to select a fixed range frame using custom RangeSeekBarView

元气小坏坏 提交于 2019-12-11 04:37:30
问题 I am using following code to select the range of video to Trime but I want select only part of 30s from total duration (2:30) like Whatsapp is doing. Referring to example: click here for example following is my custom class designed for RangeSeekBarView public class LeftRightRangeSeekBarView extends View { private static final String TAG = LeftRightRangeSeekBarView.class.getSimpleName(); private int mHeightTimeLine; private List<ThumbObjectClass> mThumbs; private List<OnRangeSeekBarListener>