Brief introduction
Suspension window is one of the features of Android platform, skilled use of suspended windows is very important, when we all use the suspended window, so there is now covered with the problem.
In the author's contact with all apps, the hover window has the strongest coverage and almost all other apps are covered.
Details
Classes involving suspended windows: WindowManager, Windowmanagerimpl,compatmodewrapper (inner class of Windowmanagerimpl), Localwindowmanager (inner Class of window).
Having mastered its principle, let's write a project test with the following test results:
In the view of the same level (flag logo), after the pop-up of the suspended window cover before the suspension window.
Is there a way to make all the suspended windows covered?
I have several options:
1. The reflection mechanism clears all the suspended Windows. (already implemented)
2. Find the maximum flag mark. (already implemented)
3, to determine whether their suspended window is covered, the overlay will be re-ejected. (already implemented)
Can the suspension window hear the return key?
I have not found an effective solution, I would like to pass the underlying interception event and then return to the suspended window, but later think, simple procedures to do, do not make the program so complicated.
Well, not much to say, the scheme has been listed, interested friends hurriedly to achieve it.
Android hover box overlay with covered