Updated:
The latest version of the Support Library (e849e45c90) has been updated to make it easier to change the status bar color.
The SVGOMG sample has been updated to use it, and the necessary changes for apps to make it work can be seen in this pull request.
The section below is outdated, but leaving here for historical context
It is possible to change the status bar color by customising it when opening the Custom Tabs Intent.
This is not currently configurable in the manifest, and the main way to do it is:
- Copy the LauncherActivity from the support library repo into your project.
- change the reference in the AndroidManifest.xml to your copy of the implementation.
- Tweak your LauncherActivity code to setup the status bar, by replacing the getCustomTabsIntent method with something like the code below:
protected CustomTabsIntent getCustomTabsIntent(CustomTabsSession session) {
return new CustomTabsIntent.Builder(session)
.setToolbarColor(Color.parseColor("#FF0000"))
.build();
}
The code above will create a red status bar. Replace #FF0000
with the desire color.