MotionLayout & RecyclerView
summary
Shows a concrete implementation: convert ConstraintLayout to MotionLayout, define start=list and end=detail constraint sets, programmatically compute placeholder constraints and call setTransition then transitionToEnd so a tapped viewholder animates into a detail overlay. Handles heterogeneous viewholders, flings, and scroll offsets. Notes pitfalls like bitmap snapshots and visibility being overwritten so uses visibilityMode="ignore" and scaleX/scaleY = 0.9 and moves toward copy attributes from source view binding instead of detaching view holders.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:45Journey
- 4:21Ticked All the Boxes
- 6:22Evolving Approaches
- 16:58Assessment
- 17:40Next Idea...
- 18:18LayoutManager detaching views
- 23:08Questions?
related talks
39mAdvanced & Practical MotionLayout
43mMoving to MotionLayout
40mAdvanced & Practical MotionLayout
19mMotionLayout: Animation made easy
50mDeep dive into MotionLayout
21mResponsive UI with Constraint and Motion layout
44mPractical Motion with Constraint Layout
42mConstraint-ly motion ~*~ making your app dance with With ConstraintLayout
