This Android Studio project demonstrates how to animate layout changes using a transition. The initial layout is a simple 2x2 grid created with LinearLayout
s.
Code is Java.
The app uses an Activity that hosts a single Fragment. The animation occurs in the Fragment.
You can view a video that demos the behavior on YouTube.
Thanks to Natali Navytka for the latte art!
Documentation is available here.
Here's the animation! Thanks to convertio.co:
Thanks to Unsplash users for their free images!
https://unsplash.com/photos/JBP5SfPmsPQ https://unsplash.com/photos/zlVfk0Zkv90 https://unsplash.com/photos/xO9NotFY4mU https://unsplash.com/photos/3uSHEffsDXI