Replies: 1 comment 2 replies
-
If that's not sufficient, the answer is probably to use the Java API via JNI. Not all Java APIs have native equivalents, and most UI stuff is not available to native code except via JNI. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to develop an Android app with NativeActivity. I've got some stuff rendering on screen, but it takes up the entire screen and draws in the same area as the clock, battery, and other icons at the top, and in the area of the system "back", "home", and "menu" buttons at the bottom of the screen.
I'm searching everywhere and can't find any documentation on how to get something like a "screen margin" or "safe area insets" so you know where you can draw if you want to not draw on top of those elements? How do you do this? Or, where should I ask this question, if not here?
I'm actually using Rust, not C/C++, but the
ndk
crate I think is just wrapping this ndk. (?)Beta Was this translation helpful? Give feedback.
All reactions