📌  相关文章
📜  android:windowLightStatusBar 以编程方式 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:40.198000             🧑  作者: Mango

代码示例1
if (on) {
    View view = getWindow().getDecorView();
    view.setSystemUiVisibility(view.getSystemUiVisibility() | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} else {
    View view = getWindow().getDecorView();
    view.setSystemUiVisibility(view.getSystemUiVisibility() & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}