ความแตกต่างในการแสดงผลแอปใน Chromebook
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เนื่องจากแอป Android ทำงานในหน้าต่างภายใต้ ChromeOS การแสดงผลแอปใน Chromebook จึงมีความแตกต่างเล็กน้อย ความแตกต่างเหล่านี้จะระบุไว้ในย่อหน้าต่อไปนี้
งาน หน้าต่าง และความโปร่งใส
งานประกอบด้วยกองกิจกรรมที่ผู้ใช้โต้ตอบด้วยเมื่อเรียกใช้แอป งานจะแสดงใน ChromeOS เป็นหน้าต่างที่มีแถบชื่อ โดยมีแอปซ้อนทับกัน จากนั้นกิจกรรมแต่ละรายการจะโปร่งแสงได้บางส่วนเพื่อให้ชั้นล่างแสดงผ่าน
ในแอป Android แบบดั้งเดิม งานก่อนหน้าหรือเดสก์ท็อปจะแสดงอยู่ใต้งาน
วิธีนี้ช่วยให้มองเห็นสิ่งที่อยู่ใต้งานแบบโปร่งแสงได้เสมอ
การดำเนินการนี้ใช้ไม่ได้ในสภาพแวดล้อมแบบหน้าต่างเนื่องจากสาเหตุต่อไปนี้
- เนื้อหาที่มองเห็นได้ใต้หน้าต่างไม่สามารถควบคุมได้ จึงอาจเป็นอะไรก็ได้
- พิกเซลที่โปร่งใสทั้งหมดอาจ "ดูดกลืน" เหตุการณ์การแตะหรือเมาส์ได้
- องค์ประกอบของหน้าต่างอาจดูเหมือนไม่ได้เชื่อมต่อกับคำบรรยายแทนที่จะเชื่อมต่อกัน ทำให้ผู้ใช้สับสนกับองค์ประกอบภาพที่ไม่เชื่อมต่อกัน
Play สำหรับ ChromeOS จะวาดสี่เหลี่ยมผืนผ้าแบบโปร่งแสงด้านหลังหน้าต่างแต่ละบานเพื่อลดปัญหานี้ ด้วยเหตุนี้ แอปจึงไม่สามารถโปร่งใสได้ 100 เปอร์เซ็นต์เมื่อทำงานภายใต้ ChromeOS แม้ว่าจะใช้ธีม Theme.Translucent.NoTitleBar
ก็ตาม
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# App rendering differences on Chromebooks\n\nBecause Android apps run in a window under ChromeOS, there are small\ndifferences in how apps are rendered on Chromebooks. These differences are\noutlined in the following paragraphs.\n\nTasks, windows, and transparency\n--------------------------------\n\nA [task](/guide/components/tasks-and-back-stack)\nconsists of a stack of activities that the user interacts with when running an\napp. Tasks are presented on ChromeOS as a window with a title bar, with the\napps layered on top of each other. Each activity can then be\npartially translucent, letting the lower layers show through.\n\nIn a conventional Android app, the previous task or the desktop shows through beneath the task.\nIn this way, there is always something visible beneath a translucent task.\n\nThis does not work in a window environment, for the following reasons:\n\n- The visible content below a window cannot be controlled, and could therefore be anything.\n- Fully transparent pixels could \"magically\" swallow touch or mouse events.\n- Window elements might visually be disconnected from the caption, confusing the user with possibly unconnected visual elements.\n\nTo mitigate this problem, Play for ChromeOS draws a semitransparent rectangle behind\neach window. For this reason, apps can never be 100 percent transparent\nwhen running under ChromeOS, even when using the `Theme.Translucent.NoTitleBar`\ntheme."]]