我正在尝试使我的应用状态栏在Android上完全透明在MainActivity.java上使用此代码]
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
并且在app.commponent上稀疏
this.statusBar.backgroundColorByHexString('#11000000');
<ion-content fullscreen>
</ion-content>
然后.sass
ion-toolbar {
--background: transparent;
--ion-color-base: transparent !important;
}