How to retain the rotation position of objective in android -
i use following code rotate imageview .. how keep last position of image after rotation ?
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareinterpolator="true" > <rotate android:duration="500" android:interpolator="@android:anim/linear_interpolator" android:pivotx="50%" android:pivoty="50%" android:repeatmode="restart" android:repeatcount="1" android:todegrees="-90" /> </set>
i mean : don't want imageview
go original position after rotation
include in rotate element:
android:fillafter="true"
like this:
<set xmlns:android="http://schemas.android.com/apk/res/android" android:shareinterpolator="true" > <rotate android:fillafter="true" android:duration="500" android:interpolator="@android:anim/linear_interpolator" android:pivotx="50%" android:pivoty="50%" android:repeatmode="restart" android:repeatcount="1" android:todegrees="-90" /> </set>
Comments
Post a Comment