Reputation: 1253
is it possible to have an image behind the status bar in a Cordova App using Ionic and the status bar plugin like the image below? I can't find anything related to this:
Thanks!
EDIT 1 My current screen:
My code:
<ion-content>
<ion-img src="https://i.imgur.com/whAtFTP.png" alt="Weeder start page image"></ion-img>
<ion-grid>
<ion-row>
<ion-col>
<div class="ion-text-center ion-margin-vertical">
<p class="slogan">
Wherever you want,
<br>
whenever you want.
</p>
</div>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-button color="primary" expand="block">Log in</ion-button>
</ion-col>
<ion-col>
<ion-button color="secondary" expand="block" (click)="register()">Sign up</ion-button>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<div class="ion-text-center ion-no-margin ion-margin-top">
<ion-text color="secondary" class="copyright">
© Weeder
</ion-text>
</div>
</ion-col>
</ion-row>
</ion-grid>
</ion-content>
Upvotes: 1
Views: 339
Reputation: 960
this.statusBar.overlaysWebView(true);
this.statusBar.backgroundColorByHexString('#D9FFFFFF');
Transparent ARGB hex value
App under status bar
AndroidFullScreen.showUnderStatusBar(successFunction, errorFunction);
Upvotes: 3