总结一下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