fudom commented on issue #1880:
URL: 
https://github.com/apache/cordova-android/issues/1880#issuecomment-3823247657

   Thanks, but this does not work. The following seems to work.
   
   ```xml
   <edit-config file="AndroidManifest.xml" mode="merge" 
target="/manifest/application/activity">
     <activity android:theme="@style/MyFullTheme" />
   </edit-config>
   
   <edit-config file="strings.xml" mode="add" target="/resources">
     <style name="MyFullTheme" parent="@style/Theme.AppCompat.NoActionBar">
       <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
       <item name="android:windowTranslucentStatus">true</item>
       <item name="android:windowTranslucentNavigation">true</item>
       <item name="android:windowFullscreen">true</item>
       <item name="android:windowActionBar">false</item>
       <item name="android:windowNoTitle">true</item>
       <item name="android:windowContentOverlay">@null</item>
     </style>
   </edit-config>
   ```
   
   This is just a workaround from another page I found. Not exactly the values 
I want, just for demo. I also experienced a weird behavior: CutoutMode 'always' 
draws the app like 'never' and vice versa. Since I have no idea how these 
settings will behave on Android 15+, I don't use it finally. But it was helpful 
to test my safe-area implementation on HTML app side.
   
   Btw. there is a cutof simulation in Android dev tools settings (developer 
options) 'Simulate display with cutout' (Android 14). I need a Android 15 
device with useless marketing notches to test it properly, but anyway. It's 
trickier than expected. I don't quite understand it yet. I just wondered if 
Cordova Android offers an official way to configure these stuff. Folling the 
[Android Cutout 
Docs](https://developer.android.com/develop/ui/views/layout/display-cutout), 
there is no need to configure this on Android 15+, since this is forced to 
`always` anyway. I thought I also set this for older Android versions for 
consistency, but the behavior is still inconsistent. It seems to be more 
complex as I though. It depends on context, views, etc. Splash and main screen 
behave also different, idk... not yet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to