Hi! Any blog post, tutorial, anything... about com...
# compose
a
Hi! Any blog post, tutorial, anything... about compose animations, for dummies, given that I even not do animations on old android?
k
https://www.raywenderlich.com/13282144-jetpack-compose-animations-tutorial-getting-started is a nice intro. Having said that, there have been APIs added in the last few weeks
a
Is there any way to animate size to "wrap_content" of a "child"
k
I'm not sure what that means
a
i have an interface with a lambda, that build a composable code:
Copy code
interface DebugModule {
    override val icon: IconType
    override val title: String 

    @Composable
    fun build() { }
}
Then, with a list of
DebugModule
i build every module, to show a composable
to achieve this:
I want to animate the click on the header (like "Actions") to show it smoothly... and animate from height = 0.dp to it's intrinsic height
k
d
AnimatedVisibility
is a great option for animating things in. If you don't care for the fade/slide, you could also consider simply adding
Modifier.animateContentSize
to the parent.
This also gives a good overview of some of the high level animation APIs in compose:

https://youtu.be/DDd6IOlH3io?t=1113