iamthevoid
10/27/2020, 7:11 PMjim
10/27/2020, 7:16 PMiamthevoid
10/27/2020, 7:34 PMjim
10/27/2020, 7:51 PMBut it looks a bit complex, dont't it?Hey, you're the one who asked for something "like DiffUtils", I was just pointing out that you can use the exact library you requested. But yes, I agree it looks complicated. For most use cases, I imagine a simple enter/exit animation would be sufficient, in which case you would want to take a look at
AnimatedVisibility
which might just do what you want more-or-less out of the box. I'm not sure the extent to which this has been tested with LazyColumn in particular (that widget is still under development), but your feedback would be useful here. Without knowing your background and specific use cases, it's hard to give a better recommendation. But like I mentioned, probably AnimatedVisibility
will be useful, and failing that, DiffUtil would be the more brute force general purpose solution. If you're reasonably new to Jetpack Compose, there are lots of third party tutorials and blog posts about Jetpack Compose animations
so a quick Google search might help you learn more about the topic, and I expect that we will publish some more complete animation documentation once we get to Beta or 1.0.