多窗口模式和多项恢复
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

第 3 层级 - 支持大屏设备
借助多窗口模式,您的应用可以与其他应用同时共享同一屏幕,从而提供增强型多任务用户体验。应用在分屏模式、画中画模式或自由窗口模式下共享屏幕。
当设备处于多窗口模式时,多重恢复会使所有 activity 保持 RESUMED
状态,即使 activity 未获得焦点也是如此。借助多重恢复功能,activity 可以在用户与其他 activity 互动时继续视频播放等进程。
后续步骤
如需了解如何让应用能够在多窗口模式下运行并支持多重恢复,请参阅以下开发者指南:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Multi-window mode and multi-resume\n\nTIER 3 --- Large screen ready\n| **Objective:** Make your app [large screen ready](/docs/quality-guidelines/large-screen-app-quality#large_screen_ready) by meeting the [LS-M1](/docs/quality-guidelines/large-screen-app-quality#LS-M1) multi-window mode and [LS-M2](/docs/quality-guidelines/large-screen-app-quality#LS-M2) multi-resume requirements of the [Large screen\n| app quality](/docs/quality-guidelines/large-screen-app-quality) guidelines.\n\nMulti-window mode enables your app to share the same screen simultaneously with\nother apps for an enhanced, multitasking user experience. Apps share the screen\nin split-screen mode, picture-in-picture mode, or free-form windowing mode.\n\nMulti-resume maintains all activities in the [`RESUMED`](/reference/kotlin/androidx/lifecycle/Lifecycle.State#RESUMED) state when the device\nis in multi-window mode, even when activities aren't focused. Multi-resume\nenables activities to continue processes such as video playback while the user\ninteracts with other activities.\n\nNext steps\n----------\n\nTo learn how to enable your app to run in multi-window mode with multi-resume,\nsee the following developer guides:\n\n- [Support multi-window mode: Compose](/develop/ui/compose/layouts/adaptive/support-multi-window-mode)\n- [Support multi-window mode: views](/develop/ui/views/layout/support-multi-window-mode)"]]