---
title: "Discussion on \"Android Edge-to-Edge & View 類型筆記\" | Hashnode"
description: "Discussion on \"Android Edge-to-Edge & View 類型筆記\". 1️⃣ enableEdgeToEdge()\n\n作用：讓 Activity 畫面延伸到 狀態列 / 導覽列 底下。\n\n預設行為：\n\n狀態列透明。\n\n導航列自動套用 scrim（半透明遮罩）確保對比度，API 29+ 支援自動亮暗判斷。\n\n\n\n好處：畫面可以全螢幕顯示，UI 更現代化。\n\n\n\n2️⃣ ViewCompat.setOnApplyWindowInsetsListener(...)\n\n作用：監聽系統 WindowInsets（安全區域）。\n\n用途：避免內容被狀態列 / 導覽列擋住。\n\n範..."
url: "https://hashnode.com/posts/android-edge-to-edge-and-view/68a29993500e51ba054f5c55"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Android Edge-to-Edge & View 類型筆記](https://kmjbpxi.hashnode.dev/android-edge-to-edge-and-view?utm_source=hashnode&utm_medium=feed)

1️⃣ enableEdgeToEdge() 作用：讓 Activity 畫面延伸到 狀態列 / 導覽列 底下。 預設行為： 狀態列透明。 導航列自動套用 scrim（半透明遮罩）確保對比度，API 29+ 支援自動亮暗判斷。 好處：畫面可以全螢幕顯示，UI 更現代化。 2️⃣ ViewCompat.setOnApplyWindowInsetsListener(...) 作用：監聽系統 WindowInsets（安全區域）。 用途：避免內容被狀態列 / 導覽列擋住。 範...

Aug 18, 2025 · 1 min read · kmjbpxi.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)

## Written by

[KM W](https://hashnode.com/@km0818)

@km0818

  
[View profile](https://hashnode.com/@km0818)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
