private void updateValue(){
  setProgress((int)Math.round((mValue - mMinValue) / (mMaxValue - mMinValue) * getTotalSteps()));
}

private void updateValue ( ) { setProgress ( ( int ) Math . round ( ( mValue - mMinValue ) / ( mMaxValue - mMinValue ) * getTotalSteps ( ) ) ) ; }
update value only ( optimization in case only value is set ) .
