# statusBar [偵測statusBar是否expand](https://stackoverflow.com/questions/26600169/toggle-the-notification-bar-in-android) [SystemUI android10.0禁止状态栏下拉](https://www.codeleading.com/article/98703372781/) [SystemUI新添加Window怎樣與狀態欄的下拉禁止同步?](https://www.twblogs.net/a/5be213d92b717720b51cccbc) 1. 在狀態欄上放置一個窗口以禁用任何觸摸或下拉。 2. 重寫OnWindowFocusChanged()方法,以在顯示通知面板後立即關閉它。