About Android WindowManager display the animated effect of a suspended window

Source: Internet
Author: User

To implement the WindowManager added window, the implementation of animation display, you need to add the following red properties, the other add view as long as the setting of its animations property will also be implemented animation, of course, but also can be implemented directly with the system has been achieved good, is also very convenient.

WindowManager =(WindowManager) Mcontext.getsystemservice (Context.window_service);
Windowparams =new Layoutparams (Layoutparams.flag_fullscreen, Layoutparams.flag_fullscreen); Windowparams.type=LAYOUTPARAMS.TYPE_SYSTEM_ERROR; Windowparams.flags=layoutparams.flag_alt_focusable_im; // windowparams.format=pixelformat.transparent; //set the Opacity to 100% windowparams.windowanimations=android. r.style.animation_translucent; // Set the animation for the window windowparams.gravity = Gravity.right | Gravity.top;windowmanager.addview (view, windowparams);

About Android WindowManager animated effects of hovering windows

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.