private void initAuraAnimators(final int index, ValueAnimator opacityAnimator) {
opacityAnimator.setRepeatMode(ValueAnimator.REVERSE);
final float opacityDecelerateFactor = 1.f + 0.8f * (index + 1);
opacityAnimator.setInterpolator(new AnticipateInterpolator(opacityDecelerateFactor));
opacityAnimator.setIntValues(255, 50, 255, 50);
opacityAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
final int opacity = (int) animation.getAnimatedValue();
mAlphaOpacityList.set(index, opacity);
}
});
}
OpacityAnimation.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:AnimatedArcProgressView
作者:
评论列表
文章目录