Skip to content

Instantly share code, notes, and snippets.

@Bhavdip
Created November 14, 2014 13:02
Show Gist options
  • Select an option

  • Save Bhavdip/632f9c633277dc20e71f to your computer and use it in GitHub Desktop.

Select an option

Save Bhavdip/632f9c633277dc20e71f to your computer and use it in GitHub Desktop.
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXScale="1"
android:fromYScale="1"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="1"
android:repeatMode="reverse"
android:toXScale="0.5"
android:toYScale="0.5" />
ImageView imageView = (ImageView) findViewById(R.id.image);
Animation pulse = AnimationUtils.loadAnimation(this, R.anim.pulse);
imageView.startAnimation(pulse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment