Join Slack
Powered by
Hey, what’s the best way to achieve this kind of a...
# compose
h
Hitanshu Dhawan
11/01/2020, 7:55 AM
Hey, what’s the best way to achieve this kind of animation? Should I use
IntPropKey()
and set the x,y coordinates using
Layout
composable? or is there any better way of achieving this?
20-10-31-13-14-15.mp4
j
jim
11/07/2020, 3:21 PM
You're ultimately going to need to store that information somewhere. To remain stateless probably the best you can do is hoist the state up:
https://developer.android.com/jetpack/compose/state#stateless-composables
3
Views
Open in Slack
Previous
Next