修改状态栏字体颜色如下:
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
修改状态栏背景颜色如下:
if (Build.VERSION.SDK_INT >= 21) {Window window = activity.getWindow();window.setNavigationBarColor(color);window.setStatusBarColor(color);}