I am struggling with this despite going through some samples...
I want to overlay over the android navigation bar - I have tried the following 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);
But of course, that fills a window which does not cover the navigation bar... after doing some reading, I tried the following (from Draw bitmaps on top of the Navigation bar in Android) ...
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);
But this does not overlay for me despite me altering the window size ... it just doesn't overlap the navigation bar :(
I want to make something like the following...
https://play.google.com/store/apps/details?id=com.haxor&hl=en_GB
This does not display above the navigation bar, but below it (which is fine for my needs)
Can anyone help me? thanks.