title: Overlay over navigation bar in Android 4
body: <p>I am struggling with this despite going through some samples... </p>
  
  <p>I want to overlay over the android navigation bar - I have tried the following code... </p>
  
  <pre><code>s_translucentParams = new WindowManager.LayoutParams(
                  WindowManager.LayoutParams.MATCH_PARENT,
                  WindowManager.LayoutParams.MATCH_PARENT,
                  WindowManager.LayoutParams.TYPE_SYSTEM_ERROR,
                  WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
                          | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
                          | WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
                          | WindowManager.LayoutParams.FLAG_FULLSCREEN
                  ,
                  PixelFormat.TRANSLUCENT);
  </code></pre>
  
  <p>But of course, that fills a window which does not cover the navigation bar...  after doing some reading, I tried the following (from <a href="https://stackoverflow.com/questions/21380167/draw-bitmaps-on-top-of-the-navigation-bar-in-android">Draw bitmaps on top of the Navigation bar in Android</a>) ...</p>
  
  <pre><code>w = new android.view.WindowManager.LayoutParams(-1, -1,0,-navigationBarHeight(),    WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,
  WindowManager.LayoutParams.FLAG_FULLSCREEN
  |WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
  |WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
  |WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR 
  |WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, Pixel.Translucent);
  f.addView(v, w);
  </code></pre>
  
  <p>But this does not overlay for me despite me altering the window size ... it just doesn't overlap the navigation bar :(</p>
  
  <p>I want to make something like the following...</p>
  
  <p><a href="https://play.google.com/store/apps/details?id=com.haxor&amp;hl=en_GB" rel="nofollow noreferrer">https://play.google.com/store/apps/details?id=com.haxor&amp;hl=en_GB</a></p>
  
  <p>This does not display above the navigation bar, but below it (which is fine for my needs)</p>
  
  <p>Can anyone help me?  thanks. </p>