Skip to content

Instantly share code, notes, and snippets.

@saishaddai
Created March 4, 2019 06:08
Show Gist options
  • Save saishaddai/6d31ca1ab1e2f6c86ad66dff53300d78 to your computer and use it in GitHub Desktop.
Save saishaddai/6d31ca1ab1e2f6c86ad66dff53300d78 to your computer and use it in GitHub Desktop.
anim for android to get a bouncing View
<?xml version="1.0" encoding="utf-8">
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true" android:interpolator="@android:anim/bounce_interpolator">
<scale
android:fromXScale="1.0dp"
android:fromYScale="0.0dp"
android:toXScale="1.0dp"
android:toYScale="1.0dp"
android:duration="600" />
</set>
@saishaddai
Copy link
Author

simple bounce animation, it should be added as resource file inside anim directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment