Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
val anim = ValueAnimator.ofInt(pizzaCheeseImageView.measuredHeight, height)
anim.addUpdateListener { valueAnimator ->
val value = valueAnimator.animatedValue as Int
val layoutParams = pizzaCheeseImageView.layoutParams
layoutParams.height = value
pizzaCheeseImageView.layoutParams = layoutParams
anim.duration = 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment