Software Archive
Read-only legacy content
17060 Discussions

Status Bar Color In an Ionic Project

Shaul_H_
Beginner
747 Views

Hello, I am trying to change the status bar's color in an ionic project, and i checked the ionic forum and got an answer that if i copy this line:

<preference name="StatusBarBackgroundColor" value="#000000" />

 

to the config.xml file, i can change the status bar's color. since intel xdk doesn't have a regular config.xml file, and handles the plugins a bit differently, i tried to paste in inside the android.xml file, and than i tried to build the app, but for some reason, after checking it , it didn't work, plus, it deleted the line i added to the android.xml file.

I was wandering if there is any way to make it work inside intel xdk? i really want to control the status bar's color, and currently i can't even see if this solution work or not.

Any help would be appreciated.

Thanks,

Shaul.

 

0 Kudos
4 Replies
Anusha_M_Intel1
Employee
747 Views

You can add your code to the intelxdk.config.additions.xml file you will find in your root directory. 

Let me know if it worked.

 

0 Kudos
Shaul_H_
Beginner
747 Views

Hi Anusha, thanks for the information, but sadly i don't have any file like...  i have 4 xml files.

android, ios, crosswalk, and windows...

is there any other place i can find this file?

thanks,

Shaul.

0 Kudos
Shaul_H_
Beginner
747 Views

I added a file by myself, and I can see that it added the line to the android.xml file..

but it didn't do anything.  i enabled the plugin through the intel xdk plugins... is this enough to make it work or is there any other parameter I am supposed to add?

 

Thanks,

Shaul.

0 Kudos
Reply