laobie / StatusBarUtil

A util for setting status bar style on Android App.
http://t.cn/Rq746Kb
Apache License 2.0
8.81k stars 1.72k forks source link

Demo中的SwitchModeActivity在setStatusBar()设置模式,根布局会嵌入状态栏下 #251

Open VinPin opened 5 years ago

VinPin commented 5 years ago
@Override
protected void setStatusBar() {
    StatusBarUtil.setColor(this, getResources().getColor(R.color.colorPrimary));
    // 此时设置模式,根布局会嵌入状态栏下
    StatusBarUtil.setDarkMode(SwitchModeActivity.this);
}

结果: image

scsfwgy commented 5 years ago

+1 RedmiPro android6.0

everyline commented 5 years ago

+1