雷达图扫描动画记得加interpolator否则会卡顿

    private void showAnimation() {
        // TODO Auto-generated method stub
        RotateAnimation toAnimation = new RotateAnimation(0, 360.f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
        toAnimation.setDuration(1000);
        toAnimation.setRepeatCount(Animation.INFINITE);
        toAnimation.setInterpolator(new LinearInterpolator());
        iv.startAnimation(toAnimation);
    }

你可能感兴趣的:(雷达图扫描动画记得加interpolator否则会卡顿)