Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98989

Android 11 - Display Cutout (Waterfall insets)

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.0 FF
    • 6.3
    • QPA: Android
    • None
    • Android
    • 2024wk48s3FOQtforAndroid
    • c2b94a15c (dev)

      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:

      • 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

        For Gerrit Dashboard: QTBUG-98989
        # Subject Branch Project Status CR V

            assam Assam Boudjelthia
            samuelmira Samuel Mira
            Votes:
            12 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes