I have an Android game, which has NativeActivity and some Java code in it. My app displayed in fullscreen, but now I need to show status bar and make my app display correctly.
I know how to show status bar, I tried 2 methods:
- Android.xml: using Theme.Holo instead of Theme.Holo.Fullscreen in app:theme for application
- in onCreate() set FLAG_FORCE_NOT_FULLSCREEN for app window
Both methods gave the same result. Status bar is displayed, but EGL view is displayed under it. Means EGL view is drawn then status bar is drawn over it, a part of EGL view is clipped and not visible.
Is there a way to make it draw EGL view in visible area only, not under status bar?
I tried to fix it but found that ANativeWindow is predefined(?) and when I create EGL view, it has the same size as ANativeWindow. So I cannot change a size of EGL view (no such API). Maybe we have some way to change a size of ANativeWindow? Or some trick with settings/flags for activity which can make it work nicely?