Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.components modify #19

Open
MultiArtsTuts opened this issue Nov 28, 2017 · 1 comment
Open

app.components modify #19

MultiArtsTuts opened this issue Nov 28, 2017 · 1 comment
Labels

Comments

@MultiArtsTuts
Copy link

Here it was only transparent by modifying the function.

initializeApp() {
    this.platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      // this.statusBar.styleDefault();

      // Transparent status bar for android
      // #AARRGGBB where AA is an alpha value
      // if (this.platform.is('android')) { 
        this.statusBar.overlaysWebView(true); // add this
        this.statusBar.backgroundColorByHexString("#33000000");
      // }

      this.splashScreen.hide();
    });
  }

IONIC CLI 3.19.0

@jeneser
Copy link
Owner

jeneser commented Nov 28, 2017

Not really, but you can say it.
We use this method to realize transparency, and then we did some other work for that.
Like: Set ui visibility.

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
	getWindow().getDecorView().setSystemUiVisibility(
	   View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
	   View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
}

Feat status bar.

.platform-android {
  .ion-page {
    ion-header {
      padding-top: $cordova-md-statusbar-padding;
      background-color: color($colors, primary);
    }
  }
}

and so on...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants