Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created June 8, 2017 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssaurel/257f865d608dfb472b4bd77fe1490483 to your computer and use it in GitHub Desktop.
Save ssaurel/257f865d608dfb472b4bd77fe1490483 to your computer and use it in GitHub Desktop.
Shake Effect Animation for Roll Dice Game on the SSaurel's Channel
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate
android:duration="70"
android:fromDegrees="-10"
android:interpolator="@android:anim/linear_interpolator"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="5"
android:repeatMode="reverse"
android:toDegrees="10" />
<translate
android:duration="70"
android:fromXDelta="-10"
android:interpolator="@android:anim/linear_interpolator"
android:repeatCount="5"
android:repeatMode="reverse"
android:toXDelta="10" />
</set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment