我有一个像这样的进度条视图:
<ProgressBar
android:id="@+id/progress_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:max="100"/>
它持续3秒,那么如何使用插值器使更新更加平滑?
ObjectAnimator animation = ObjectAnimator.ofInt(what_is_in_here?);
animation.setDuration(3000); // second
animation.setInterpolator(new DecelerateInterpolator());
animation.start();
我非常感谢您的帮助。非常感谢您的预先帮助。