我想在Android中更改状态栏的颜色(我正在使用6.0进行测试)。我尝试了statusbar插件和所有我能找到的解决方案,但都没有起作用。
这是我的config.xml
这是我的config.xml
<widget>
中包含的内容:<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarBackgroundColor" value="#BE1912" />
我的 index.js 包含:
if (window.cordova && StatusBar)
{
StatusBar.backgroundColorByHexString('#3399FF');
}
已按软件包名称和Github存储库添加插件。
目前为止没有任何效果...
提前感谢!:)
document.addEventListener('deviceready', function(){ StatusBar.backgroundColorByHexString('#3399FF');});
- Voakie