Skip to content

Instantly share code, notes, and snippets.

@jinqian
Last active December 17, 2015 01:49
Show Gist options
  • Save jinqian/5531062 to your computer and use it in GitHub Desktop.
Save jinqian/5531062 to your computer and use it in GitHub Desktop.
android rotation animation
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true"
android:fillEnabled="true">
<rotate
android:duration="1600"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:startOffset="10"
android:toDegrees="359" />
</set>
<!-- programatically set interpolator of sync butto rotation animation as a linear one -->
<!-- this.sync_button_rotation.setInterpolator(new LinearInterpolator()); -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment