androidandroid-ndkstatusbar

How to draw between system bars and keep the system bars completely opaque?


I really dont like system bars interfering with app window and I wish every pixel to also recieve AMotionEvent. So I am interested in two modes

  1. non-fullscreen window: from top the screen would show status bar, app window and navigation bar.
  2. fullscreen window: app window maximized to entire screen. system bars can be made visible by pulling from edges.

AWINDOW_FLAG_* are not much help.

Thanks


Solution

  • The problem has same answer as the non-ndk pure-java version of the problem. That is, too low targetSdkVersion. setting targetSdkVersion>=24 fixed the problem.