總結一下UI的開發
參考:https://blog.csdn.net/qq_34681580/article/details/103955191
https://blog.csdn.net/guolin_blog/article/details/51763825
一.沉浸式狀態欄怎么實現?
直接通過設置狀態欄顏色實現
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
window.statusBarColor = statusBarColor
二.沉浸式狀態欄怎么讓背景圖頂上去?
需要設置decorView.systemUiVisibility的值包含View.SYSTEM_UI_FLAG_FULLSCREEN即可,另外布局xml不能設置android:fitsSystemWindows為true