简体   繁体   中英

How to implement complicated animation at android platform

Now i am developing an android app, and there are lots of animations and image resources, the ui design and the logic are also very complex.
I tried to use the Tween animation and android layout to implement, but the code is very complex, and i also can't implement some parts of animations. Anyone know how to handle such complex animation at the android platform? Dose android have some tool like as flash tool to design the animation?

In android three type of anmiations.

1)TranslateAnimation

An animation that controls the position of an object

2)ScaleAnimation

An animation that controls the scale of an object. You can specify the point to use for the center of scaling.

3)AlphaAnimation

An animation that controls the alpha level of an object. Useful for fading things in and out. This animation ends up changing the alpha property of a Transformation

Check this for some example.

You can use droidQuery for complex animations. For example, to animate all your ImageView s to double their current size, do:

$.with(this).selectByType(ImageView.class)
            .animate("{width:200%, height:200%}", 
                     new AnimationOptions().easing($.Easing.BOUNCE).duration(400));

You can highly customize your animation with chained methods on the AnimationOptions Object - from the duration and interpolator to callbacks for progress, errors, success, and completion, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM