My solution to this problem (at least for phones) was to create an xml that can be aligned with the status height as top offset
eg. draw / window _background.xml:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:top="25dp"> <bitmap android:src="@drawable/some_background" /> </item> </layer-list>
This will not work if the status bar is at the bottom.
EDIT: edited the answer for using a single xml drawing, as Aleksejs Mjaliks said
Zarokka
source share