Skip to content

Showing system ui without overlaying the application (GameActivity) #96

Description

@lucasmerlin

My application is not a game but rather an app using egui as ui, so I'd like to show the android status bar and navigation buttons while my app is open.
I would expect, that if you don't call hideSystemUI and call setDecorFitsSystemWindows with true (in the agdk-eframe example), that the app fits within the system ui.
While the system ui is shown sucessfully, it now overlays the top and the bottom part of the app (in the eframe example, the top bar where you select the different demos is completely hidden by the status bar on my device).

Seems like the underlying SurfaceView created by the GameActivity doesn't respect the setDecorFitsSystemWindows flag. I also tried setting various flags on the views I was able to access in onCreate but I haven't found a reliable way to make the surface view fit inside the system ui.

I also tried updating all the android libraries to the latest version, hoping it'd be a bug in one of them, but it didn't make a difference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions