manueldidonna
03/01/2020, 1:28 AMcontainer.doOnLayout {
val originalHeight = it.height
// expandedChild visibility was GONE
expandedChild.isVisible = true
view.doOnPredraw {
val newHeight = it.height
expandedChild.isVisible = false
}
}
// Now I can animate the container height between originalHeight & newHeight
How Could I achieve a similar behaviour with compose?Zach Klippenstein (he/him) [MOD]
03/01/2020, 8:46 AMOnPositioned
or OnChildPositioned
help?
https://developer.android.com/reference/kotlin/androidx/ui/core/package-summary#OnChildPositioned(kotlin.Function1,%20kotlin.Function0)