Created
December 11, 2019 06:51
-
-
Save hoajb/9e8972a3324bf166c318326b378234ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ImageView iv = (ImageView) findViewById(R.id.my_imageview); | |
ObjectAnimator scaleDown = ObjectAnimator.ofPropertyValuesHolder( | |
iv, | |
PropertyValuesHolder.ofFloat("scaleX", 1.2f), | |
PropertyValuesHolder.ofFloat("scaleY", 1.2f)); | |
scaleDown.setDuration(310); | |
scaleDown.setRepeatCount(ObjectAnimator.INFINITE); | |
scaleDown.setRepeatMode(ObjectAnimator.REVERSE); | |
scaleDown.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment