, the animation isn't smooth but steps pixel-by-pixel, which is very noticeable if the animated movement is slow. Is there a way to animate the movement with smooth non-integer offset values? In other words, can I offset a Composable by half a pixel?
Marcin Wisniowski
01/06/2025, 12:48 PM
In comparison, animating scale or rotation is very smooth even when rotating/scaling by small values, and states in-between moving by a whole pixel are drawn correctly.
l
Louis
01/06/2025, 12:53 PM
Do you use
offset { }
or
offset()
?
m
Marcin Wisniowski
01/06/2025, 12:53 PM
I'm using
offset { }
l
Louis
01/06/2025, 12:57 PM
I think you can try with Modifier.graphicsLayer (translationX/Y). they are float