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

Android: Differ between fullscreen and maximized windows

    XMLWordPrintable

Details

    • Android
    • 59569fd0202c52a16860fba5634e743286a19fd2

    Description

      Currently, we set the flag ShowIsFullscreen in Android, but what we are really doing is maximizing all windows, because the status bar is still visible unless you remove it in the AndroidManifest.

      In Qt terms, the logical interpretation is that:
      show(): Whatever is the platform default
      showMaximized(): Fills the area of the screen which is not used for system UI
      showFullscreen(): Fills the entire screen

      We should follow this on Android as well. This means that instead of "ShowIsFullscreen", we should have "ShowIsMaximized" to ensure that all windows are maximized by default.

      In addition, showFullscreen() should actually hide the system UI elements that we are able to hide, such as the status bar.

      A way to do this which is compatible with our minimum SDK version is:

      getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
      

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes