Last active
December 10, 2021 05:45
-
-
Save theminimaldev/593814ba76195885c6f64d2f0201f18c 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
private fun showSubtitle() { | |
//TODO measure the view | |
val subtitleHeight = tvSubtitle.measuredHeight | |
tvSubtitle.height = 0 | |
tvsubtitle.isVisible = true | |
val heightAnimator = ValueAnimator.of Int(0, subtitleHeight) | |
heightAnimator.addUpdateListener { | |
tvSubtitle.updateHeight(it.animatedValue as Int) | |
} | |
heightAnimator.start(). | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment