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