Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.3
-
None
Description
Overview:
Android 11 provides several APIs to support waterfall displays, displays that wrap around the edge of the device. These displays are treated as a variant of displays with display cutout, which is an API for the top notch, camera cutout, or any other cutout.
https://developer.android.com/reference/android/view/DisplayCutout
https://source.android.com/docs/core/display/display-cutouts
Example:
The existing DisplayCutout.getSafeInset…() methods now return the safe inset to avoid waterfall areas as well as cutouts. To render your app content in the waterfall area, do the following:
- Call DisplayCutout.getWaterfallInsets() to get the exact dimensions of the waterfall inset.
- Set the window layout attribute layoutInDisplayCutoutMode to LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS to allow the window to extend into the cutout and waterfall areas on all edges of the screen. You must make sure that no essential content is in the cutout or waterfall areas.
Proposed Actions:
- Check if it is interesting to use this API to render app content in the waterfall area
Attachments
Issue Links
- relates to
-
QTBUG-117004 Replace setSystemUiVisibility with non-deprecated way
- Reported
-
QTBUG-114437 REG: Android: Layout in display cut mode being overridden to short edges always
- Closed
-
QTBUG-46630 Full screen QDialog is shown incorrectly
- Open
-
QTBUG-96877 Qt6 won't render into cutout area (regression)
- Closed
-
QTBUG-90346 Android: Add support for QPlatformWindow::safeAreaMargins()
- Closed
- resulted from
-
QTBUG-98375 Spike Android 11 features
- Closed