App rendering differences on Chromebooks
Stay organized with collections
Save and categorize content based on your preferences.
Because Android apps run in a window under ChromeOS, there are small
differences in how apps are rendered on Chromebooks. These differences are
outlined in the following paragraphs.
Tasks, windows, and transparency
A task
consists of a stack of activities that the user interacts with when running an
app. Tasks are presented on ChromeOS as a window with a title bar, with the
apps layered on top of each other. Each activity can then be
partially translucent, letting the lower layers show through.
In a conventional Android app, the previous task or the desktop shows through beneath the task.
In this way, there is always something visible beneath a translucent task.
This does not work in a window environment, for the following reasons:
- The visible content below a window cannot be controlled, and could therefore
be anything.
- Fully transparent pixels could "magically" swallow touch or mouse
events.
- Window elements might visually be disconnected from the caption, confusing
the user with possibly unconnected visual elements.
To mitigate this problem, Play for ChromeOS draws a semitransparent rectangle behind
each window. For this reason, apps can never be 100 percent transparent
when running under ChromeOS, even when using the Theme.Translucent.NoTitleBar
theme.
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 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 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."]]