I have an activity that supports landscape and portrait orientation. The root layout of the activity is a motion layout. After the motion layout animation, if I change the device orientation, the UI goes back to the start constraint set. How can this be avoided?
Asked
Active
Viewed 272 times
1
-
2Last time I checked motionlayout doesn't implement any state save/restoration mechanism. You can extend it to do so: https://stackoverflow.com/a/66647252/9241978 – Pawel Aug 08 '21 at 17:35