Android overlay on top of software buttons
Asked Answered
A

1

4

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?

Acicular answered 11/1, 2013 at 17:34 Comment(0)
K
3

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.

Kaylee answered 15/1, 2013 at 15:18 Comment(2)
I have seen an app on playstore .. play.google.com/store/apps/details?id=es.richardsolano.filter .. It implements the required behavior... I am still browsing to get the correct implementation ..Efface
@Nishant Chauhan do you get any ANS?Antimonic

© 2022 - 2024 — McMap. All rights reserved.