Animate the ListView Item

Source: Internet
Author: User

       //Animation CollectionAnimationset Animationset =NewAnimationset (true); //Alpha AnimationAnimation Animation =NewAlphaanimation (0.0f,1.0f); Animation.setduration (1300);        Animationset.addanimation (animation); //The displacement animation effect falls from the Y direction to its own position//relative_to_self relative to itself//-1.0f The starting y-coordinate to its own height//translateanimation (int fromxtype, float fromxvalue,//int Toxtype, float toxvalue,//int Fromytype, float fromyvalue,//int Toytype, float toyvalue)Animation =Newtranslateanimation (animation.relative_to_self,0.0f,animation.relative_to_self,0.0f, Animation.relative_to_self,-1.0f,animation.relative_to_self,0.0f); Animation.setduration (1300);        Animationset.addanimation (animation); //set the Child view animation and durationLayoutanimationcontroller Controller =NewLayoutanimationcontroller (animationset,0.5f); //bind to ListViewMlistview.setlayoutanimation (Controller);

Animate the ListView Item

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.