On Android KitKat, is it possible for the overlay to display full screen?

With WindowManager.addView and WindowManager.LayoutParams the screen can add a TYPE_SYSTEM_OVERLAY , which will then be drawn on top of all other applications. This can be used for various effects, such as coloring the screen or drawing a view that will always be visible. However, I did not find a way for this overlay to draw on top of the background that was made behind the soft keys.

With the new drawing options in this area supported by KitKat, I decided that I could try FLAG_TRANSLUCENT_NAVIGATION and FLAG_TRANSLUCENT_STATUS , but the background still does not work. FLAG_LAYOUT_IN_SCREEN and FLAG_FULLSCREEN don't seem to help. It seems that the only way to influence the soft key background is by using FLAG_DIM_BEHIND and setting .dimAmount, but this can only be used to darken the soft key background. Is it possible to actually draw something, how does this happen from the inside? If so, how can this be done?

+6
source share

All Articles