From 5b77cae78c9690e07821e81771b6868eafac1184 Mon Sep 17 00:00:00 2001 From: Travis Dahl Date: Fri, 10 Aug 2018 22:46:11 -0700 Subject: [PATCH 1/2] Alpha example doesn't match description if I understand this correctly, "you can also specify values as #AARRGGBB, where AA is an alpha value." The alpha in this example would be 33% right? --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db99f92..ed60ce0 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ 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. For example, a black status bar with 33% opacity: ```js if (cordova.platformId == 'android') { StatusBar.overlaysWebView(true); From 9b5baa2cf96b0f4402da3c903639c7944548ba3b Mon Sep 17 00:00:00 2001 From: Travis Dahl Date: Fri, 31 Aug 2018 17:51:35 -0700 Subject: [PATCH 2/2] Add link to explain hexadecimal ARGB values --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ed60ce0..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 33% 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);