I am going to rotate the image in My app. All Works fine with the Rotation. But while i rotation animation get finish the Image wil return to its previous position. I want is to remain that image to that rotated state and not to get it back to its real state.
So how to make it possible? To rotate image I am using below code:
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:pivotX="50%"
android:pivotY="50%"
android:fromDegrees="0"
android:toDegrees="30"
android:duration="2000">
</rotate>
并将其应用于《意见》中:
myImageView.startAnimation(rotateRight);
因此, 就此帮助我。