Android hover box overlay with covered

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.