On non-compose apps I had to add ```<item name="android:windowLayoutInDisplayCutoutMode">short...
y
On non-compose apps I had to add
Copy code
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
to my
styles.xml
so the notch background would look right, but I cant find the compose version for controlling this.
c
There isn't one currently.
y
@cb is there any alternative way to fix the issue? on phones that have a notch, when the app is in landscape mode (statusbar is in a different place than the notch), the notch space shows the parents background.
My app is a launcher with a transparent background so it shows the wallpaper
c
You're telling the host system how to layout your app, and you already have the API to do so. Why don't you want to use the theme attribute?
y
I actually was just trying that... idk why I felt like I couldnt still use xml. I havent had used the styles xml for my compose app for so long that I forgot it even existed lol
It doesnt look like it works as it did with non-compose apps..,
Am I missing something?