how to display full screen on android cutout


Sorry, my English is poor, please see the picture

Try adding this to your <style/> declaration:

<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>

1 Like

thank you very much
thank you very much

Have the same problem. I’ve added the needed option to styles.xml, but the cutout black border still remains. Here is res/values-v27/styles.xml:

<resources>
    <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
        <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
    </style>
</resources>

What am I doing wrong?

UPD: for some reason Android SDL project has AppTheme in style file but does not use it as app theme. A workaround is to change default theme in AndroidManifest.xml:

<application android:label="@string/app_name"
        android:theme="@style/AppTheme"