我正在尝试使我的应用statusbar
在android上完全透明
在 MainActivity.java
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
并在app.component上进行精简
this.statusBar.backgroundColorByHexString('#11000000');
最佳答案
app.component.ts
ionViewWillEnter() {
this.statusBar.show();
this.StatusBar.overlaysWebView(true);
this.StatusBar.backgroundColorByHexString('#000000');
}
关于ionic-framework - Ionic 4 状态栏完全透明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59466106/