找到安卓动画的麻烦。
我将RelativeLayout作为root布局,并在布局中心分配了四个ImageView,并且在它们之上我有一些图片。
接下来我有一些按钮然后在活动中我运行下一个代码
RotateAnimation anim2=new RotateAnimation(0, 360,Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
anim2.setFillEnabled(true);
anim2.setFillAfter(true);
anim2.setDuration(100);
ImageView animatedView1 = (ImageView) findViewById(R.id.imageView1);
animatedView1.startAnimation(anim2);
动画工作滞后:(
就像我尝试在S3 Trio视频卡上运行Doom 3 :))))
但是,如果我隐藏其他3个图像视图并且只显示一个我需要旋转的图像 - 我没有问题 - 它旋转平滑以及我需要的方式。
另外,我发现它没有不同大小的图像(文件)6 Kb,60Kb它没有区别:(
如何在没有LAGS的情况下进行严格动画