-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide navigation bar (in native acitivity) #95
Comments
GameActivity doesn't have any special support for this either. The examples I've seen just deal with hiding navigation bars in the Java subclass of Slightly related to this - I'm currently looking at binding the |
@MarijnS95 hi, did you manage to solve it in a somewhat simple way? (eg. without creating a custom java class). |
I think it'd be great if that was a feature. Following the link you sent, I managed to translate the JNI calls into Rust. However, since "only the original thread can touch its views", this call has to be made from the Java thread. I managed to hack this directly into It's probably possible to trigger this from the main thread somehow, feels hacky to me though. Triggering this in response to Here's some ideas I had:
|
Hey @rib, perhaps you have a better idea for this. With
WindowManagerFlags::FULLSCREEN
the status bar can be hidden (still available when swiping inwards from the top of the screen), and I'd like the same to happen on the navigation bar (bottom of the screen) instead of being drawn over my native activity. There doesn't seem to a be asetWindoWFlags()
flag available to disable this (or that we can pass as the "remove" argument), and most answers seem to point to doing this viaDecorView
for which no native API is available (have to go throughjni
): https://stackoverflow.com/a/50831255I can barely believe that native activities - intended for e.g. full-screen games - lack this functionality in an easily accessible manner. Did I miss something? Is this possible on
GameActivity
? If not, should we implement the above JNI logic onAndroidApp
to be more easily accessible?The text was updated successfully, but these errors were encountered: