Chromebook でのアプリのレンダリングの違い
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ChromeOS では Android アプリはウィンドウ内で実行されるため、Chromebook でのアプリのレンダリング方法にわずかな違いがあります。これらの違いについて、以降の段落で概説します。
タスク、ウィンドウ、透明度
タスクは、ユーザーがアプリの実行時に操作するアクティビティのスタックで構成されています。ChromeOS では、タスクはタイトルバー付きのウィンドウとして表示され、アプリが重なって表示されます。各アクティビティを部分的に半透明にして、下位のレイヤを透かして表示できます。
従来の Android アプリでは、前のタスク(デスクトップ)がタスクの下に透けて表示されます。
このようにして、半透明のタスクの下に常に何かが表示されます。
これは、次の理由によりウィンドウ環境では機能しません。
- ウィンドウの下に表示されるコンテンツは制御できないため、何でもできる可能性があります。
- 完全に透明なピクセルにより、タップイベントやマウスイベントを魔法のように飲み込むことができます。
- ウィンドウ要素が字幕と視覚的に分離され、接続されていない可能性のある視覚要素とユーザーを混乱させることがあります。
この問題を軽減するため、Play for ChromeOS は各ウィンドウの背後に半透明の長方形を描画します。このため、Theme.Translucent.NoTitleBar
テーマを使用している場合でも、ChromeOS でのアプリの実行でアプリの透明度を 100% にすることはできません。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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,["# 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."]]