public class MyProgressBar extends SeekBar { /** * 是否支持拖动进度 */ private boolean touch = true; public MyProgressBar(Context context, AttributeSet attrs) { this(context, attrs, 0); } public MyProgressBar(Context context, AttributeSet attrs, int defStyle…