"Pro Android Graphics" Fourth section of reading notes

Source: Internet
Author: User

Android procedural Animation:: XML, Concepts and optimizationProcedural Animation Concepts:tweens and Interpolators

interpolator: http://developer.android.com/reference/android/animation/TimeInterpolator.html

Procedural Animation Data values:ranges and Pivot Point

Range and Center point

procedural Animation Transforms:rotate, scale, Translate scale:One Of them involves size rotation:< Span style= "FONT-SIZE:14PX;" >involves orientation (which direction that something is facing) translation:involves movement procedural Animation compositing:alpha blending  procedural Animation timing:using Duration and Offsets < /span>procedural Animation Loops:repeatcount and repeatmode 

RepeatCount Interger (Loop forever Use Infinite (-1))

Repeatmode:restart (1)

Reverse (2)

The <set> tag:using XML to Group procedural Animation

Android.view.animation

rule of thumb is to apply your transformational parameters locally

Procedural Animation vs. frame animation:the trade-off frame Animation

Memory intensive (requires many other memories): Displaying the image from memory onto the View is fairly straightforward and does not require a NY complex calculations, so all processing involves moving each frame's image asset from memory through to display screen.

Procedural animation

tends to is more processing intensive (many other calculations required)

Creating a procedural Animation Definition Using XML

Animation Pagani = Animationutils.loadanimation (this, r.anim.pag_anim); (view) pag.startanimation (Pagani);

Using Set to Create a more Complex procedural AnimationRotation transformation:going a Bit Too far with FXTweaking Transform values:the Ease of adjusting XML


"Pro Android Graphics" Fourth section of reading notes

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.