android-adaptive-layouts
Installation
SKILL.md
Android Adaptive Layouts ๐ฑ๐ป๐ป
Professional strategies for building flexible, responsive Android applications that scale beautifully from phones to tablets and foldables.
โก When to Use
- Multi-Device Support: Designing a UI that works on all screen sizes.
- Foldable Support: Adapting layout based on hinge position (Tabletop mode).
- Tablet Optimization: Using extra screen space for "List-Detail" or complex dashboards.
- ChromeOS Support: Adapting for resizable desktop-style windows.
- Dynamic Orientation: Handling rotations without losing state.
๐๏ธ The 3 Window Size Classes
- Compact (Phone): 0-599dp width. Single column.
- Medium (Small Tablet/Large Phone): 600-839dp width. Navigation rail or multi-pane.
- Expanded (Large Tablet/Desktop): 840dp+ width. Fixed navigation drawer or complex dashboards.