Check out the WindowManager class. Essentially, you put the View on top of the status bar (position 0, 0). You will need to correctly adjust the height, use BroadcastReceivers and other APIs to update Views with the current state of the device (for example, battery, signal, time, etc.). It can be done, it is very difficult.
Source: Iām the developer of StatusBar + , the application on which the status bar is based. It was open source in its alpha builds, but is no longer available.
source share