📅  最后修改于: 2022-03-11 14:52:18.941000             🧑  作者: Mango
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
Window w = getWindow();
w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
w.setStatusBarColor(getResources().getColor(R.color.dashboard_main_color));
}