【android】平滑Activity过渡动画效果,类库已分离,使用只需1行代码

 

Smooth.gif (1.92 MB, 下载次数: 0)

下载附件  保存到相册

前天 19:02 上传



 



和楼上帖子联动  
http://www.eoeandroid.com/thread-540189-1-1.html

原因也是因为这个
http://www.eoeandroid.com/thread-536528-1-1.html

目标是:

----------------------------
Smooth activity switch animation.
You can get all these animations by just one line:
  1. new SwitchAnimationUtil().startAnimation(getWindow().getDecorView(), AnimationType.SCALE);
复制代码


License
Copyright (c) 2014  Dean Ding
Licensed under the  Apache License, Version 2.0


思路是这样:

我有个想法是这样的...
我们可以从 rootview开始.....android UI层  
所有界面都是挂在 rootview上的  整个就是一个树形结构..

我们可以从rootview 开始  或者 Activity的 ContentView 开始
遍历整个View Tree ,会经过所有子view...

然后从最深的view开始递归,给每个View挂上动画,每上一层给动画的开始时间delay 若干..

--------------
想想觉得挺不错的....放TODO LIST里有空试一试.......

---------------------------------
SourceCode : https://github.com/dkmeteor/SmoothTransition

------------------------------------------


转自:http://www.eoeandroid.com/thread-540303-1-1.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值