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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -