Question

I am trying to write an app that draws a custom mouse pointer. I currently have a service that creates a class that extends ViewGroup and uses the WindowManager system service to display it as a TYPE_SYSTEM_OVERLAY with the FLAG_LAYOUT_IN_SCREEN set.

This almost works. On my tablet (Samsung Galaxy Tab 7.7) and in the emulator set to tablet mode, it is laid above everything except the bottom status bar (with the soft home, back keys and the notification area). In the emulator, there are no software buttons on screen, but it is laid on top of the notification bar.

I've also tried the solution in: TYPE_SYSTEM_OVERLAY in ICS but I got the same results.

Is there a way to truly draw on top of everything?

Was it helpful?

Solution

I have previously used System Overlays to achieve something similar, and can unfortunately tell you that it isn't possible.

You can overlay on top of the entire normal screen area, and over the notification bar if it isn't clubbed with the system bar at the bottom (as is the case in some tablets). Beyond that, it seems to be impossible to overlay on top of the System Bar software buttons.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top