I am working on animating an image view and that moves to the right and rotates at the same time. I can get the item to move using
animation = new Transl
You need to use an AnimationSet.
An example in XML I made which moves an image from left to right, up and down and rotates, all at the same time.
Code example (not to replicate above):
AnimationSet animationSet = new AnimationSet(true);
TranslateAnimation a = new TranslateAnimation(
Animation.ABSOLUTE,200, Animation.ABSOLUTE,200,
Animation.ABSOLUTE,200, Animation.ABSOLUTE,200);
a.setDuration(1000);
RotateAnimation r = new RotateAnimation(0f, -90f,200,200);
r.setStartOffset(1000);
r.setDuration(1000);
animationSet.addAnimation(a);
animationSet.addAnimation(r);
(Taken from here)