Skip to content

Instantly share code, notes, and snippets.

View thrashedbrain's full-sized avatar
🏠
Working from home

thrashedbrain

🏠
Working from home
View GitHub Profile
ObjectAnimator animator = ObjectAnimator.ofPropertyValuesHolder(
container,
PropertyValuesHolder.ofFloat("scaleX", 0.5f),
PropertyValuesHolder.ofFloat("scaleY", 0.5f)
);
animator.setDuration(300);
animator.setRepeatCount(ObjectAnimator.RESTART);
animator.setRepeatMode(ObjectAnimator.REVERSE);
animator.setInterpolator(new FastOutSlowInInterpolator());
animator.start();