iOS Question [SOLVED] Possible to make B4XDrawer cover top of screen also?

Discussion in 'iOS Questions' started by Sandman, Nov 6, 2018.

  1. Sandman

    Sandman Well-Known Member Licensed User

    This question is regarding the lovely B4XDrawer, which I'm a huge fan of.

    On Android, B4XDrawer also covers the top of the screen, like we can see here:
    (With a transparent status bar)

    upload_2018-11-6_21-25-46.png


    On iOS the drawer doesn't overlap the top section:

    upload_2018-11-6_21-17-42.png


    However, when looking at (for instance) the Gmail app for iOS, their menu also covers the top section:

    upload_2018-11-6_21-19-43.png


    I have no idea if it's possible and reasonable to make B4XDrawer also cover the top area on iOS, but I thought it might be worth asking.

    (I looked at the B4XDrawer source to see if it was a simple adjustment needed, but I could see that all references to Top for that panel was already set to 0, so I'm thinking probably some magic stuff is needed for this - and that's very far from my skill set.)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can do two things:

    1. Hide the navigation bar:
    Code:
    NavControl.NavigationBarVisible = False
    You can create your own bar instead.

    2. You can hide the status bar: https://www.b4x.com/android/forum/threads/47866/#content

    I don't think that it is possible to draw over the status bar.
     
    Sandman likes this.
  3. Sandman

    Sandman Well-Known Member Licensed User

    That's an excellent, and very doable, compromise - thanks!


    Just looking at Gmail in my iPhone, it seems possible to do it. However, I imagine it's entirely possible they did what you suggested with the nav bar, and just hid it and made their own that looks identical.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice