1

I can change the color of status bar in android, using the following code:

if (cordova.platformId == 'android') {
    StatusBar.backgroundColorByHexString("#0974aa");
}

Because I have to write this code in onDeviceReady event handler, it will be executed after the program loaded completely(after the splash screen).

I want to have this color while displaying splash screen, too.

What can I do?

Ahmad
  • 5,551
  • 8
  • 41
  • 57
  • splash screen have any activity ? – dex Apr 07 '16 at 03:35
  • @dex I can't understand what are you talking about. I'm not so expert in android. – Ahmad Apr 07 '16 at 06:59
  • I am asking how you are showing splash screen ? if it is activity then getwindow out of that and set status bar color. Let me know if you required code. Probably this link provide information http://stackoverflow.com/questions/22192291/how-to-change-the-status-bar-color-in-android – dex Apr 07 '16 at 08:10
  • I'm using cordova's splash screen plugin to implement that. https://github.com/apache/cordova-plugin-splashscreen – Ahmad Apr 07 '16 at 13:06

0 Answers0