+ 1
How to give animations and transition to an android xml element???
I have an imageview and i want to give rotate animation or any kind of animation. if you know any sources for android animations and transitions .website...book or app please help me... tanx every 1.
2 Réponses
+ 5
hi have you checked 
https://developer.android.com/guide/topics/graphics/view-animation.html ?
looks like you could do something like:
file: res/anim/my_anim.xml 
<rotate 
        android:fromDegrees="0",
        android:toDegrees="360",
        ...
        android:duration="400" />
and then in Java:
ImageView myView = ... ;
Animation myAnim= AnimationUtils.loadAnimation(
              this, R.anim.my_anim);
myView.startAnimation (myAnim);
cheers!



