放大动画 [英] Zoom in Animation

查看:249
本文介绍了放大动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用RotateAnimation图像。 但我也想放大图像与动画。 是指当我的形象是旋转则图像也放大...

I am using RotateAnimation for image. But I also want zoom on image with animation. Means when my image is rotate then image is also zooming...

我该怎么办缩放动画。 plz帮助我。 在此先感谢......

How can I do zoom with animation. Plz help me. Thanks in Advance......

推荐答案

我有一个想法,希望它的帮助。

I have one idea, hope it's help.

AnimationSet animSet = new AnimationSet(false);
RotateAnimation rotate = new RotateAnimation(0, 180);
ScaleAnimation zoom = new ScaleAnimation(0, 0, 1, 1);

animSet.addAnimation(rotate);
animSet.addAnimation(zoom);

animSet.start();

因为需要你的应用程序,您应该改变的参数。

You should change parameters as need your application.

这篇关于放大动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆