就一行代码:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);//设置透明状态栏
还有其他的样式,参考
https://blog.csdn
2020-03-10