@Override
public void startAnimation(DynamicWeatherView dynamicWeatherView, int fromColor) {
super.startAnimation(dynamicWeatherView, fromColor);
ValueAnimator animator = ValueAnimator.ofFloat(-bitmap.getWidth() * 0.25f, getWidth() - bitmap.getWidth() * 0.25f);
animator.setDuration(1000);
animator.setRepeatCount(0);
animator.setInterpolator(new OvershootInterpolator());
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
transFactor = (float) animation.getAnimatedValue();
}
});
animator.start();
}
HailType.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:FakeWeather
作者:
评论列表
文章目录