Foldables - WindowManager with MotionLayout
summary
Concrete recipe: use WindowManager to detect Tabletop posture and compute the fold rectangle, use MotionLayout with a ReactiveGuide to reflow the player, and keep video with ExoPlayer. The code checks foldingFeature state and horizontal orientation, intersects the fold rect with the view, offsets coordinates to view origin, handles overlap and adds the bedding in the math, then animates the guide so the player avoids the hinge.
AI-written summary · about
related talks
41mWhat can my foldable do?
33mIntroduction to dual-screen and foldables development
35mDesigning for foldables in 2023
34mMore Than Foldables: Android App for Foldables and Larger Screens
01h 01mComposing large screens
01h 21mEnhance your single screen designed-app to make it shine on foldable devices
29mFoldable, Meet Compose
37mBuilding Responsive UIs for tablets, foldables, and other devices
