Replies: 2 comments 8 replies
-
From my understanding, |
Beta Was this translation helpful? Give feedback.
4 replies
-
There has been a lot of prior art on hiding those bars, for example: https://github.com/fornwall/wgpu-game-of-life/blob/d7295accf97f8e87efdf43d13d0380c8e96cf184/src/android.rs#L49-L83 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got an Android app working, sort of. When I render my UI it appears superimposed with the system stuff at the top and bottom of the phone screen. I mean the clock, battery, and other icons at the top, and the back/home/menu buttons at the bottom. The
inner_size
andouter_size
of theWindow
are the same. I don't see any properties that I can use to get the dimensions of these system areas, so I know how much to offset my content.I see some dicussion here about a
safe_area
but I don't see it in the crate docs for the latest release.I'm using a
NativeActivity
, configured in myAndroidManifest.xml
, and apparently that calls theandroid_main(app:AndroidApp)
function, from which I callwinit
to createWindow
, etc.In some apps I would like to get rid of the system bars, to have more area, for a game, for example. But in normal apps, I want to keep those and render my content in the smaller area (same width, less height) between them.
Beta Was this translation helpful? Give feedback.
All reactions