private void startSunRotate() {
ValueAnimator rotateAnim=animMap.get(ANIM_SUN_ROTATE);
if (rotateAnim==null){
rotateAnim =ValueAnimator.ofFloat(0,360f).setDuration(30*1000);
rotateAnim.setRepeatCount(ValueAnimator.INFINITE);
rotateAnim.setInterpolator(new LinearInterpolator());
rotateAnim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
sunRotateAngle= (float) animation.getAnimatedValue();
}
});
animMap.put(ANIM_SUN_ROTATE,rotateAnim);
}
startValueAnimator(rotateAnim);
}
WeatherView.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Aurora
作者:
评论列表
文章目录