Make the following changes to make the most out of the transition animations
defined in the project and to better display them in the animation preview:
1) Renamed AnimationDefinations -> AnimationDefinitions.
2) Changed transition definitions state type from Int to AnimationState.
3) Set the label property to PropKeys so they can be identified in the
animation preview.
4) Changed a few var to val.
Here is how DpMultiStateAnimation would be displayed in Android Studio Animation Preview after the changes above:
Make the following changes to make the most out of the transition animations defined in the project and to better display them in the animation preview:
1) Renamed AnimationDefinations -> AnimationDefinitions. 2) Changed transition definitions state type from Int to AnimationState. 3) Set the label property to PropKeys so they can be identified in the animation preview. 4) Changed a few var to val.
Here is how
DpMultiStateAnimation
would be displayed in Android Studio Animation Preview after the changes above: