ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
ฟีเจอร์หน้าต่างเดสก์ท็อป
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Android 16 เปิดตัวฟีเจอร์การแสดงหน้าต่างบนเดสก์ท็อป 2 รายการ ได้แก่ การแทรกส่วนหัวที่ปรับแต่งได้และการจัดการอินสแตนซ์แอป หน้านี้อธิบายสถานการณ์การทดสอบ
เพื่อยืนยันความเข้ากันได้ของเบราว์เซอร์ OEM ต้องยืนยันว่าการใช้งานฟีเจอร์
ทํางานได้ตามที่มุ่งหวังไว้
กรณีทดสอบต่อไปนี้จะยืนยันความเข้ากันได้ของเบราว์เซอร์กับส่วนแทรกส่วนหัวที่ปรับแต่งได้
- การโต้ตอบของ UI: ตรวจสอบว่า UI แถบคำบรรยายแทนเสียงของเบราว์เซอร์ยังคงโต้ตอบได้อย่างเต็มที่ในทุกการกำหนดค่าการแสดงหน้าต่าง (อิสระ แยกหน้าจอ และเต็มหน้าจอ)
- การเว้นที่ว่างสำหรับไอคอนระบบ: ตรวจสอบว่า UI ของเบราว์เซอร์ไม่ได้วาดใต้ไอคอนระบบ
- การใช้สีพื้นหน้า: ตรวจสอบว่ามีการใช้สีพื้นหน้าที่ถูกต้อง
กับไอคอนระบบในส่วนหัวของแอปตามธีมของเบราว์เซอร์
ซึ่งมีความสำคัญอย่างยิ่งเมื่อธีมของเบราว์เซอร์แตกต่างจากธีมของระบบ
- การลากหน้าต่าง: ตรวจสอบว่าลากหน้าต่างอิสระได้โดย
การกดค้างที่ใดก็ได้ในพื้นที่ว่างของแถบแท็บ
- การแสดงแท็บเมื่อปรับขนาด: ทดสอบว่าแท็บจะแสดงหรือซ่อนตามความกว้างของหน้าต่างเพื่อให้คงความสามารถในการใช้งานที่เหมาะสม
กรณีทดสอบสำหรับการจัดการอินสแตนซ์ของแอปที่มีลักษณะการทำงานของท่าทางสัมผัสที่ลากได้
กรณีทดสอบต่อไปนี้จะยืนยันความเข้ากันได้ของเบราว์เซอร์กับการจัดการอินสแตนซ์ของแอป
- การสร้างหน้าต่างใหม่: ยืนยันว่าการลากแท็บจากแถบแท็บไปยัง
พื้นที่ว่างจะสร้างหน้าต่างเบราว์เซอร์ใหม่ที่มีแท็บนั้น
- ไม่มีหน้าต่างใหม่สำหรับแท็บสุดท้าย (อินสแตนซ์เดียว): หากเปิดอินสแตนซ์เบราว์เซอร์เพียงอินสแตนซ์เดียว ให้ตรวจสอบว่าการลากแท็บสุดท้ายในหน้าต่างนั้นไม่ทำให้เกิดหน้าต่างใหม่
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","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 UTC"],[],[],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."]]