Wrote a library with #JetpackCompose to animate drawing a list of Path
Available on github (and via #jitpack)
https://t.co/ZwNgt1tYaO
Under no circumstances you should open the SVGHelper class. It was pulled from a very old repo🙈
#AndroidDev
@manuelvicnt Actually the DisableInstallInCheck annotation won't be enough here. The annotation would need to be on the generated module, but there's no way to do that. Not working for me at least.
@crafty Feel like there's still tricky cases like idle scroll, with the top-most item currently laid out needing to know previous adapter item to draw decoration. But since we can't check the adapter's content as the content displayed might be out of date.
@crafty Any idea how to have a conditional ItemDecoration? I need to check previous item, but using findViewHolderForLayoutPosition might return null if it's not laid out yet. And using adapter.getItemViewType() might not be synced with last layout. Thx!
@crafty Same issue, won't work if the previous view is not laid out. The item offset will be incorrect, not sure it would be re-computed after previous/next items are laid out (depending on scroll direction). Could lead to weird effects