animateViewHeight
fun View.animateViewHeight(from: Int, to: Int, duration: Long, interpolator: Interpolator = LinearInterpolator(), doOnEnd: (Animator) -> Unit? = null)
Smoothly animates view's height from size to desired size
Receiver
View
Parameters
from
starting size
to
desired final size
interpolator
animator interpolator