I'm just starting to get animation, animation animations. I made some images with pictures rotating and moving, and all this is a lot of fun, but I donβt know what is the best approach for doing several animations.
For example, I created LinearLayout and inserted some ImageViews into it and wrote the following:
RotateAnimation imgrotate = new RotateAnimation(0,360,
RotateAnimation.RELATIVE_TO_SELF,0.5f,
RotateAnimation.RELATIVE_TO_SELF,0.5f);
rotate.setDuration(2000);
someview.setAnimation(imgrotate);
someview.startAnimation(imgrotate);
for each image. Therefore, they all rotate. But now I want to do it. But reaidng other online sources it seems that some people use canvas for animation. What is the best way?
user485498
source
share