Smooth Progress Bar Animation

前端 未结 9 839
鱼传尺愫
鱼传尺愫 2021-01-01 10:34

I\'m trying to implement a smooth animation for my ProgressBar, but when I increase the time (30 seconds), the animation is no longer smooth.

Example wi

9条回答
  •  爱一瞬间的悲伤
    2021-01-01 10:56

    XML

           
    

    JAVA

    @BindView(R.id.progress_bar) ProgressBar progressBar;
    ObjectAnimator.ofInt(progressBar, "progress", 79).start();
    

    79

    • any number between 0 and 100 for this example

提交回复
热议问题