title: WindowManager.LayoutParams.FLAG-LAYOUT-IN-SCREEN how to draw over navigaion bar in android app?
body: <p>I am trying to create a simple android app to display a black bar across the top and bottom of the screen to hide the novel rounded screen corners that every manufacturer insists on putting on every phone. This will require drawing over both the status bar and navigation bar, as a system wide overlay that shows over all other apps.</p>
  <p>I can use WindowManager.LayoutParams.FLAG-LAYOUT-IN-SCREEN to draw over the status bar, but this does not allow for drawing over the navigation bar.</p>
  <p>What is the parameter I need to use so I can draw over the navigation bar as well?</p>
  <p>All the other solutions I have found only apply to the app itself, and not to the overlay elements.</p>
  <p>I also need to add something to stop the overlay from rotating when an app goes to landscape mode, I still want to be able to use apps in landscape, but the overlay should stay in portrait.
  I have already added android:screenOrientation=&quot;portrait&quot; to the activity tag in my manifest file but this does not make a difference as it does not affect the overlay itself.</p>
  <p>Any help would be appreciated</p>