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

Android 11 - Display Cutout (Waterfall insets)

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.3
    • QPA: Android
    • 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:

      • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              samuelmira Samuel Mira
              Votes:
              12 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes