You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/01 20:39:21 UTC

[GitHub] [cordova-plugin-statusbar] breautek edited a comment on issue #155: Plugin not working on Android 9

breautek edited a comment on issue #155: Plugin not working on Android 9
URL: https://github.com/apache/cordova-plugin-statusbar/issues/155#issuecomment-537215303
 
 
   I need to make a correction.
   
   > Setting backgroundColorByHexString and overlaysWebView(true) are two conflicting states and I'm pretty sure they'll override each other.
   
   I'm wrong about this, they will not conflict. You can have a status bar in an overlay state, and still set a background color to it. 
   
   Below should be all you need to set the statusbar to overlay mode. It will make the status bar transparent, and your webview will appear **underneath** the status bar (so `padding-top` may be necessary). Similar to what you had before.
   
   ```javascript
   document.addEventListener('deviceready', () => {
       StatusBar.overlaysWebView(true);
       StatusBar.backgroundColorByHexString('#33000000');
   });
   ```
   
   This was tested on my android 9 device, if it doesn't work for you, then please provide a sample reproduction app. Learn more about creating a reproduction app at https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org