Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Samsung bottom-most navigation bar obstructs view
Forum Updated to NodeBB v4.3 + New Features

Samsung bottom-most navigation bar obstructs view

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 365 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vega4
    wrote on last edited by Vega4
    #1

    This happens only on Samsung devices. The bottom navigation bar on Android 10 obstructs the field of view and covers part of an element within an Activity which was supposed to be located just above it. The activities width and height are set to match those of Screen. Have you experienced that? Solutions?

    J.HilkJ 1 Reply Last reply
    0
    • V Vega4

      This happens only on Samsung devices. The bottom navigation bar on Android 10 obstructs the field of view and covers part of an element within an Activity which was supposed to be located just above it. The activities width and height are set to match those of Screen. Have you experienced that? Solutions?

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Vega4 yes I have,

      I believe the code in this example should return the correct safe area
      https://github.com/DeiVadder/PaintBehindSystemBars

      tell me if it does not, because that would be a bug, and I'll have to investigate :D


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • V Offline
        V Offline
        Vega4
        wrote on last edited by Vega4
        #3

        @J-Hilk I'm on it! brb. By the way.. as you imagine it is great that you've got it covered and gave me a hand! Anyway, seems like one needs to go pretty far and add lots of code (also Java) to support the 'SafeArea' on Android? Any plans to integrate it further into the platform? Anything I could 'upvote'?

        J.HilkJ 1 Reply Last reply
        1
        • V Vega4

          @J-Hilk I'm on it! brb. By the way.. as you imagine it is great that you've got it covered and gave me a hand! Anyway, seems like one needs to go pretty far and add lots of code (also Java) to support the 'SafeArea' on Android? Any plans to integrate it further into the platform? Anything I could 'upvote'?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Vega4 sure, I'm struggling with it on a regular basis x)

          Nothing one can do really, mobile is, despite what QtC says somewhat neglected. IMHO more than other areas

          you can upvote this ticket

          https://bugreports.qt.io/browse/QTBUG-90346

          it would make it so that the QPlatformWindow::safeAreaMargins also works correctly on android, would simplify the required code enormously


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Vega4
            wrote on last edited by Vega4
            #5

            that one I already got upvoted!:D will get back with result by tomorrow. Cheers.

            @J-Hilk that seems to have put us on the right track! Many thanks. If you feel like getting some 'Oranges' get in touch;d [https://twitter.com/gridnetproject/status/1389222481874014209](link url)

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved