配合Textview使用十分简单
ValueAnimator animator = ValueAnimator.ofInt(3, 0);
animator.setDuration(3000);
animator.setInterpolator(new LinearInterpolator());
animator.addUpdateListener(animation -> {
int times = (Integer) animation.getAnimatedValue();
//倒计时进行中
...
if (value == 0) {
//倒计时结束
...
}
});
animator.start();