AndroidViewAnimations:Andorid视图动画合集YOYO

一天我看见一个ios动画效果库   AFViewShaker, 它实现的效果很赞, 我认为Android 也需要一个这样的库,所以过了两天,我就自己创建了这个项目。

使用

为了把效果做的很逼真,我创建了另外一个项目叫做,Android Easing Functions ,是一些简单功能的实现,我们需要引入那个项目。

Gradle

maven

或者下载下面的库到你的eclipse项目中

使用

就像玩Yo-y0 一样简单

总共有一下效果

Attension

FlashPulseRubberBandShakeSwingWobbleBounceTadaStandUpWave

Special

HingeRollInRollOut,Landing,TakingOff,DropOut

Bounce

BounceInBounceInDownBounceInLeftBounceInRightBounceInUp

Fade

FadeInFadeInUpFadeInDownFadeInLeftFadeInRight

FadeOutFadeOutDownFadeOutLeftFadeOutRightFadeOutUp

Flip

FlipInXFlipOutXFlipOutY

Rotate

RotateInRotateInDownLeftRotateInDownRightRotateInUpLeftRotateInUpRight

RotateOutRotateOutDownLeftRotateOutDownRightRotateOutUpLeftRotateOutUpRight

Slide

SlideInLeftSlideInRightSlideInUpSlideInDown

SlideOutLeftSlideOutRightSlideOutUpSlideOutDown

Zoom

ZoomInZoomInDownZoomInLeftZoomInRightZoomInUp

ZoomOutZoomOutDownZoomOutLeftZoomOutRightZoomOutUp

github项目地址https://github.com/daimajia/AndroidViewAnimations

For making animations more real, I created another project named Android Easing Functions which is an implementations of easing functions on Android. So, we need to dependent that project. Step 1 Gradle dependencies { compile 'com.nineoldandroids:library:2.4.0' compile 'com.daimajia.easing:library:1.0.1@aar' compile 'com.daimajia.androidanimations:library:1.1.3@aar' } Maven <dependency> <groupId>com.nineoldandroids</groupId> <artifactId>library</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>com.daimajia.androidanimation</groupId> <artifactId>library</artifactId> <version>1.1.3</version> <type>apklib</type> </dependency> <dependency> <groupId>com.daimajia.easing</groupId> <artifactId>library</artifactId> <version>1.0.1</version> <type>apklib</type> </dependency> Eclipse Download the following jars, and copy them into your libs directory. NineOldAndroid-2.4.0 AndroidEasingFunctions-1.0.0 AndroidViewAnimations-1.1.3 Step 2 Just like play Yo-yo. YoYo.with(Techniques.Tada) .duration(700) .playOn(findViewById(R.id.edit_area)); Effects Attension Flash, Pulse, RubberBand, Shake, Swing, Wobble, Bounce, Tada, StandUp, Wave Special Hinge, RollIn, RollOut,Landing,TakingOff,DropOut Bounce BounceIn, BounceInDown, BounceInLeft, BounceInRight, BounceInUp Fade FadeIn, FadeInUp, FadeInDown, FadeInLeft, FadeInRight FadeOut, FadeOutDown, FadeOutLeft, FadeOutRight, FadeOutUp Flip FlipInX, FlipOutX, FlipOutY Rotate RotateIn, RotateInDownLeft, RotateInDownRight, RotateInUpLeft, RotateInUpRight RotateOut, RotateOutDownLeft, RotateOutDownRight, RotateOutUpLeft, RotateOutUpRight Slide SlideInLeft, SlideInRight, SlideInUp, SlideInDown SlideOutLeft, SlideOutRight, SlideOutUp, SlideOutDown Zoom ZoomIn, ZoomInDown, ZoomInLeft, ZoomInRight, ZoomInUp ZoomOut, ZoomOutDown, ZoomOutLeft, ZoomOutRight, ZoomOutUp Welcome contribute your amazing animation effect. :-D
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

安果移不动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值