Nicolas Acart
06/02/2021, 9:38 AMval image = animatedVectorResource(id = R.drawable.avd_pathmorph_arrowoverflow_arrow_to_overflow)
val atEnd by remember { mutableStateOf(false) }
Image(
painter = image.painterFor(atEnd = atEnd),
contentDescription = null,
)
LaunchedEffect(Unit) {
atEnd = !atEnd
}
The drawable comes from here : https://github.com/SmartToolFactory/Animation-Tutorials/blob/master/Tutorial2-1Ani[…]/res/drawable/avd_pathmorph_arrowoverflow_arrow_to_overflow.xml
When I run this code, it seems that only the first object animator is done : It moves the point but does not morph to become lines etc.
Android Studio Canary's Design window can run the animation correctly but when I run it in my code it fails.
Am I launching it correctly ? Do I misunderstand something ?Doris Liu
06/03/2021, 4:07 AMNicolas Acart
06/03/2021, 2:46 PM