【开源】ArcAnimator
ArcAnimator
- https://github.com/asyl/ArcAnimator
介绍:
在2.3中实现arc(圆形轨迹)过度动画。使用 NineOldAndroids来实现2.3的兼容。运行效果:
![]()
使用说明:
该项目依赖于
-
Jake Wharton的 NineOldAndroids
-
Ozodrukh's CircularReveal
|
1
2
3
4
5
6
7
8
9
|
//set up clipView and coordinates where clipView will move ArcAnimator arcAnimator = ArcAnimator.createArcShift(clipView, endX, endY, DEGREE, SIDE) .setDuration(500) .start(); //or specify nestView for clipView. Animator will take center x,y coordinates of nestView ArcAnimator arcAnimator = ArcAnimator.createArcShift(clipView, nestView, DEGREE, SIDE) .setDuration(500) .start(); |
posted on 2015-04-27 09:28 wasdchenhao 阅读(111) 评论(0) 收藏 举报

浙公网安备 33010602011771号