Smoke & Mirrors the Magic behind Wonderful UI in Android
summary
Shows how to build an interactive pinch-to-zoom gallery by faking layers: two RecyclerViews sharing one data set, cross-fading between scaled views and using ViewOverlay to animate a tapped item into a fullscreen container. Explains RecyclerView recycling, use of OnScaleGestureListener with a gesture tolerance and a TRANSITION_BOUNDARY to decide final state, and the necessity of ClipChildren=false on parent chains. Demo code is on GitHub and the technique works in practice.
AI-written summary · about
chapters (10)
- 0:00Start
- 5:29Shared Element Transitions
- 7:30ViewOverlay
- 16:21Smoke and mirrors
- 25:24Scale begin
- 25:53During Scale
- 27:58Scale ends
- 29:25Recycler View elevation
- 31:06Transition to full screen
- 34:05Magic tricks








