getWindow().setStatusBarColor(0xff56ced4 );//改变状态栏的颜色
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//改变字体颜色
12-03
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-23
4113
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
getWindow().setStatusBarColor(0xff56ced4 );//改变状态栏的颜色
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//改变字体颜色