https://kotlinlang.org logo
#compose
Title
# compose
z

zt

08/19/2022, 3:55 AM
I'm using the accompanist systemuicontroller library to set the system bars but it doesnt apply to the punch hole area when the screen is in landscape mode. Can I fix this somehow?
a

Alex Vanyo

08/19/2022, 4:04 AM
I'd play around with changing layoutInDisplayCutoutMode. There isn't a way at the moment to change that via accompanist/systemuicontroller, so you'll have to set it directly yourself.
z

zt

08/20/2022, 1:27 AM
That works I guess, just puts a black bar there for the entire height
Copy code
<item name="android:windowLayoutInDisplayCutoutMode">default</item>
I do wanna eventually get some kind of pinch to zoom on that black box in the screenshot, where itll display over the cutout
4 Views