自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
電腦分割視窗功能
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android 16 推出兩項電腦視窗功能:可自訂的標題插邊和應用程式例項管理。本頁面說明如何透過測試情境驗證瀏覽器相容性。原始設備製造商必須驗證功能實作是否正常運作。
下列測試案例會驗證瀏覽器是否與可自訂的標頭插邊相容:
- UI 互動性:確認瀏覽器的說明文字列 UI 在所有視窗設定 (任意形式、分割畫面和全螢幕) 中,都維持完全互動狀態。
- 系統圖示間距:確認瀏覽器 UI 不會繪製在系統圖示下方。
- 套用前景顏色:根據瀏覽器的主題,確認正確的前景顏色已套用至應用程式標題的系統圖示。如果瀏覽器主題與系統主題不同,這一點就特別重要。
- 視窗拖曳:確認長按分頁列空白區域的任何位置,即可拖曳任意形狀的視窗。
- 調整大小時的分頁顯示設定:測試分頁是否會根據視窗寬度顯示或隱藏,以維持最佳可用性。
應用程式執行個體管理測試案例 (含可拖曳的手勢行為)
下列測試案例會驗證瀏覽器與應用程式例項管理功能的相容性:
- 建立新視窗:確認將分頁從分頁列拖曳至空白區域時,會建立包含該分頁的新瀏覽器視窗。
- 最後一個分頁沒有新視窗 (單一執行個體):如果只開啟一個瀏覽器執行個體,請確認拖曳該視窗中的最後一個分頁時,不會建立新視窗。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Desktop windowing features\n\nAndroid 16 introduced two desktop windowing features: [customizable header\ninsets](https://developer.android.com/develop/ui/compose/layouts/adaptive/support-desktop-windowing#customizable_header_insets) and [app instance management](https://developer.android.com/develop/ui/compose/layouts/adaptive/support-desktop-windowing#manage_app_instances). This page describes the testing\nscenarios to verify browser compatibility. OEMs must verify that the feature\nimplementation works as intended.\n\nTest cases for customizable header insets\n-----------------------------------------\n\nThe following test cases verify browser compatibility with customizable header\ninsets:\n\n- **UI interactivity:** Verify that the browser's caption bar UI remains fully interactive across all windowing configurations (freeform, split screen, and fullscreen).\n- **System icon clearance:** Confirm that the browser UI doesn't draw under system icons.\n- **Foreground color application:** Verify that the correct foreground colors are applied to system icons on the app header based on the browser's theme. This is particularly important when the browser's theme differs from the system theme.\n- **Window dragging:** Validate that a freeform window can be dragged by long-pressing anywhere on an empty area of the tab strip.\n- **Tab visibility on resize:** Test that tabs are shown or hidden based on the window's width to maintain optimal usability.\n\nTest cases for app instance management with draggable gesture behavior\n----------------------------------------------------------------------\n\nThe following test cases verify browser compatibility with app instance\nmanagement:\n\n- **New window creation:** Confirm that dragging a tab from the tab strip to an empty area creates a new browser window containing that tab.\n- **No new window for the last tab (single instance):** If only one browser instance is open, verify that dragging the last tab in that window doesn't create a new window."]]