Yugandhar Babu Yugandhar Babu - 6 months ago 102
Android Question

How to change the background color of android status bar

I want to change the background color of status bar by writing an application. My android device has black color, i want to change it to some other color. I saw here, some posts related to it but all are telling about notification background.

If any body know about this please help me.

The default status bar

enter image description here

After using a drawable as background to status bar

enter image description here

Answer

Sorry, unless you are making a custom ROM this isn't possible, unless you only want the status bar changed for your app.

This would require a heck of a lot of work.

First you will need to add Theme.NoTitleBar.Fullscreen to your manifest

<application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" 
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        >

Then once you have done that you need to create a standard layout which represents the status bar, this would mean that you have to add the time, and also receive all the notifications from other apps, I do not personally know how to do that but I'm sure there is a way.

If you really want to do this goodluck, you have a hard time ahead of you.


Sorry, unless you have the know how of building custom ROMS I do not think this is possible