I've used
SharedElementTransition
in my app but I want to perform the same animation with interactive touch as well.In iOS they have this option but I couldn't find similar solution in Android. If I write custom animation by overriding
onTouch
method then it will take a good time to be stable and perfect.So, I first want to be sure that if
SharedElemnetTransition
can be made interactive or not or is there any simple or more efficient solution for that? Any ideas would be highly appreciable. Thanks
Asked
Active
Viewed 33 times
0

Parth Lotia
- 753
- 1
- 7
- 25

Usman Rana
- 2,067
- 1
- 21
- 32
-
Could you provide an example video / gif about what you mean by "interactive"? – Gergely Kőrössy Mar 19 '19 at 12:49
-
by interactive i mean to animate views on drag by figure in exactly the same pattern as SharedElementTransition performs it. – Usman Rana Mar 19 '19 at 13:06
-
1Shared elements are automatically animated when you switch activities / fragments. You can, however, animate views interactively between scenes in a fragment / activity using the new `MotionLayout`. – Gergely Kőrössy Mar 20 '19 at 01:45
-
Thanks for shaing that. But i want to make transition between 2 different scaleTypes of ImageView. is that possible anyway? – Usman Rana Mar 20 '19 at 13:04