Differenze di rendering delle app sui Chromebook
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Poiché le app Android vengono eseguite in una finestra sotto ChromeOS, esistono piccole differenze nel modo in cui le app vengono visualizzate sui Chromebook. Queste differenze sono illustrate nei paragrafi seguenti.
Attività, finestre e trasparenza
Un'attività è composta da uno stack di attività con cui l'utente interagisce durante l'esecuzione di un'app. Le attività sono presentate in ChromeOS come una finestra con una barra del titolo e le app sono sovrapposte. Ogni attività può quindi essere parzialmente traslucido, lasciando passare i livelli inferiori.
In un'app per Android convenzionale, l'attività precedente o il desktop vengono visualizzati sotto l'attività.
In questo modo, c'è sempre qualcosa visibile sotto un'attività semitrasparente.
Questa operazione non funziona in un ambiente a finestre, per i seguenti motivi:
- I contenuti visibili sotto una finestra non possono essere controllati e pertanto potrebbero essere di qualsiasi tipo.
- I pixel completamente trasparenti potrebbero inghiottire "magicamente" eventi di tocco o del mouse.
- Gli elementi della finestra potrebbero essere visivamente scollegati dalla didascalia, confondendo
l'utente con elementi visivi potenzialmente non collegati.
Per mitigare il problema, Play per ChromeOS disegna un rettangolo semitrasparente dietro ogni finestra. Per questo motivo, le app non possono mai essere trasparenti al 100% quando vengono eseguite con ChromeOS, anche quando si utilizza il tema Theme.Translucent.NoTitleBar
.
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[null,null,["Ultimo aggiornamento 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."]]