The larger screen space on tablets and foldables gives you opportunities to display richer content, enable multitasking, and create unique experiences not available on phones.
Because Android devices come in all shapes and sizes, design your app with flexible layouts that gracefully adapt to whatever screen the app is running on. Don't define your layouts with rigid dimensions that assume a certain screen size, aspect ratio, or orientation.
Responding to state transitions
Your app's windows can change sizes while the app is being used. For example, the app could be running on a Chrome OS device that allows multiple apps to run in windows whose dimensions can dynamically change. Or your app could be running on a foldable device that allows different folded postures.
- Multi-window support describes how to support your app in split-screen and picture-in-picture modes
- The Jetpack WindowManager library and the WindowMetrics API help you lay out your content
- Design your apps for foldables shows you how to support foldable devices
Handling free-form multi-window and input device actions
Some user actions require your app to respond to dynamically changing states, such as window resizing and mouse tracking.
- Window management for Chrome OS explains how to handle multiple windows
- Input compatibility for Chromebooks provides advice on supporting mouse and trackpad input