1
我有一个图标,并且我希望它始终处于旋转状态。到目前为止非常好,只是我想限制帧为12fps,以便它会产生我预期的效果。我怎样才能做到这一点?Android:极限旋转动画fps
ImageView loadingCircle= (ImageView) getActivity().findViewById(R.id.loading_circle_image);
RotateAnimation rotateAnimation = new RotateAnimation(0.0f, 1.0f * 360.0f,Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);
rotateAnimation.setDuration(1000);
rotateAnimation.setInterpolator(new LinearInterpolator());
rotateAnimation.setRepeatCount(Animation.INFINITE);
rotateAnimation.setRepeatMode(Animation.INFINITE);
loadingCircle.startAnimation(rotateAnimation);
你不能这样做,对不起 – pskink 2014-11-06 10:23:53
如果你的动画有点快,那么尝试增加持续时间。你不能玩fps。 – 2014-11-06 11:03:50