Phones, tablets, and foldables
Build for Android mobile devices—phones, tablets, foldables—with Jetpack Compose APIs that automatically optimize your app layouts for different screen sizes and configurations. Support all Android mobile devices with the same engineering and maintenance effort as supporting just mobile phones.
Jetpack Compose APIs
Jetpack Compose APIs enable you to build once and publish to multiple form factors and display modes, including split-screen mode and desktop windowing. With Compose, when you develop for phones, you're also developing for tablets and the folded and unfolded screens of foldable devices.
API
Flexbox
Build layouts with the web‑standard flexbox model. Arrange elements horizontally or vertically within a container and let Compose handle the sizing and spacing on any display.
API
Grid
Create a flexible, two-dimensional layout that displays items in a multi‑column or multi‑row grid that adapts the number of columns or rows to the available container size.
API
MediaQuery
Determine window width and height, window posture, pointing device precision, keyboard type, whether camera and microphone are supported by the device, and more.
API
Navigation 3
Navigate to and from destinations just by adding and removing items from a list. Fully control the back stack, retain screen state, and display multiple destinations simultaneously.
Adaptive design
Design optimized layouts that adapt to phones, tablets, and foldables automatically.