Windowmanagerservice's Appwindowanimator Notes

Source: Internet
Author: User

The article only records their own understanding of a little, for their own reference.

This article will detail the role of key member variables and functions in Appwindowanimator.

Appwindowanimator is the activity animation class. Each activity object corresponds to a Appwindowtoken object in the WMS, and Appwindowtoken contains a Appwindowanimator object. In other words, an activity is supposed to have a Appwindowanimator object, which is stored in the appwindowtoken corresponding to the activity. This can be seen in the Appwindowtoken constructor:

    Appwindowtoken (Windowmanagerservice _service, Iapplicationtoken _token) {        super (_service, _token.asbinder (),                WindowManager.LayoutParams.TYPE_APPLICATION, true);        Appwindowtoken = this;        Apptoken = _token;        Minputapplicationhandle = new Inputapplicationhandle (this);        Manimator = Service.manimator;        Mappanimator = new <span style= "color: #cc0000; Background-color:rgb (255, 255, 255);" >AppWindowAnimator</span> (this);    }

1, Mapptoken

New OneAppwindowanimator This (appwindowtoken) as a parameter, stored in the Appwindowanimator.mapptoken, in other words , Mapptoken Save is the animation belongs to which Appwindowtoken, further said that is which activity to belong to.

    Public Appwindowanimator (Final Appwindowtoken atoken) {        <span style= "color: #ff6666;" >mapptoken </span>= <span style= "color: #ff6666;" >atoken</span>;        Mservice = Atoken.service;        Manimator = Atoken.manimator;    }
2.





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.