rahatarmanahmed/CircularProgressView

stopAnimation() does not remove visibility

leonapse opened this issue · 4 comments

Before calling startAnimation() on a built indeterminate progress view, it doesn't show the view until after calling startAnimation(), which is convenient in cases you want to conceal the view first while no process is executed. Is it possible to remove view visibility on stopAnimation()? Where in a single instance of the progress view can handle repeated start and stop animation calls throughout an activity, showing and hiding the view respectively.

I think the view is still there before you call startAnimation(), but the progress is at 0 so it doesn't show anything. You can set the visibility with View.setVisibility()

@rahatarmanahmed Yes that's what I was doing, but was hoping that there's some mechanism that automatically removes the visibility or set the progress to 0 when calling stopAnimation(). A question: Can you set the progress at 0 to hide the progress if your progress view is an indeterminate one?