skydoves / ProgressView

🌊 A polished and flexible ProgressView, fully customizable with animations.
Apache License 2.0
784 stars 57 forks source link

Add a way to specify a minimum value for progress. #6

Closed omarsahl closed 4 years ago

omarsahl commented 4 years ago

Add a way that prevents the progress from going below a specified min value.

Something similar to this:

var progress = 0f
    set(value) {
      field = if (value >= max) max
      else if (values <= min) min
      else value
      updateProgressView()
      onProgressChangeListener?.onChange(field)
    }
skydoves commented 4 years ago

@omar753sahl Hi, It is released a new version 1.0,4. Thank you for your contribution!