एनीमेशन के दौरान सीपीयू लोड बहुत अधिक (75% तक) है
वहाँ कम CPU लोड पाने के लिए कोड का अनुकूलन करने के लिए एक विधि है?
मेरे कोड:
ImageView myImageView = (imageView) findViewById (R.id.ImageView02);
animSet = new AnimationSet(true);
animSet.setInterpolator(new LinearInterpolator());
animSet.setFillAfter(true);
animSet.setFillEnabled(true);
final RotateAnimation animRotate = new RotateAnimation(0.0f, 360.0f,
RotateAnimation.RELATIVE_TO_SELF, 0.5f,
RotateAnimation.RELATIVE_TO_SELF, 0.5f);
animRotate.setRepeatCount(Animation.INFINITE);
animRotate.setDuration(rotor_duration());
animRotate.setFillAfter(true);
animSet.addAnimation(animRotate);
myImageView.startAnimation(animSet);