public void setValueRange(int min, int max, boolean animation){
        if(max < min || (min == mMinValue && max == mMaxValue))
            return;

        float oldValue = getExactValue();
        float oldPosition = getPosition();
        mMinValue = min;
        mMaxValue = max;

        setValue(oldValue, animation);
        if(mOnPositionChangeListener != null && oldPosition == getPosition() && oldValue != getExactValue())
            mOnPositionChangeListener.onPositionChanged(this, false, oldPosition, oldPosition, Math.round(oldValue), getValue());
    }
public void setValueRange ( int min , int max , boolean animation ) { if ( max < min || ( min == mMinValue && max == mMaxValue ) ) return ; float oldValue = getExactValue ( ) ; float oldPosition = getPosition ( ) ; mMinValue = min ; mMaxValue = max ; setValue ( oldValue , animation ) ; if ( mOnPositionChangeListener != null && oldPosition == getPosition ( ) && oldValue != getExactValue ( ) ) mOnPositionChangeListener . onPositionChanged ( this , false , oldPosition , oldPosition , Math . round ( oldValue ) , getValue ( ) ) ; }
Set the randge of selectable value.
@param min The minimum selectable value.
@param max The maximum selectable value.
@param animation Indicate that should show animation when thumb's current position changed.