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 2018/09/07 05:11:19 UTC

[GitHub] Menardi closed pull request #100: Alpha example doesn't match description

Menardi closed pull request #100: Alpha example doesn't match description
URL: https://github.com/apache/cordova-plugin-statusbar/pull/100
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index db99f92..31fe3bf 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,9 @@ if (cordova.platformId == 'android') {
 }
 ```
 
-It is also possible to make the status bar semi-transparent. For example, a black status bar with 20% opacity:
+It is also possible to make the status bar semi-transparent. Android uses hexadecimal ARGB values, which are formatted as #AARRGGBB. That first pair of letters, the AA, represent the alpha channel. You must convert your decimal opacity values to a hexadecimal value. You can read more about it [here](https://stackoverflow.com/questions/5445085/understanding-colors-on-android-six-characters/11019879#11019879).
+
+For example, a black status bar with 20% opacity:
 ```js
 if (cordova.platformId == 'android') {
     StatusBar.overlaysWebView(true);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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