About adaptive layouts
Stay organized with collections
Save and categorize content based on your preferences.
Android 应用可在各种设备上运行,从可折叠翻盖手机到壁挂式电视,应有尽有。为了在所有类型的设备上提供出色的用户体验,请让应用的界面适应不同的显示屏尺寸和配置。最出色的 Android 应用会充分利用其占用的屏幕空间,并在运行时处理该空间的变化,包括分屏和桌面窗口化模式下的屏幕方向变化和窗口大小调整。
Note: For apps that target Android 16 (API level 36), the system ignores screen
orientation, aspect ratio, and app resizablility restrictions to improve the
layout of apps on form factors with smallest width >= 600dp. See App
orientation, aspect ratio, and resizability .
主题
自适应布局文档提供了有关如何执行以下操作的指南:
设计和实现自适应布局
根据窗口大小调整应用的主要导航
使用窗口大小类别来调整应用的界面
使用 Jetpack API 简化规范布局(例如列表详情)的实现
前提条件
自适应布局指南假定您了解以下概念:
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-04-08 UTC.
[null,null,["Last updated 2026-04-08 UTC."],[],[]]