TransitionPlayer引导动画

[复制链接]
来自: MrlLee 分类: Android精品源码 上传时间: 2016-4-26 20:24:17

项目介绍:

Permalink
Failed to load latest commit information.
.idea first commit Aug 9, 2015
demo [add] git xiaoma_intro Aug 14, 2015
gradle/wrapper first commit Aug 9, 2015
library setCurrentFraction is added in API 22 Aug 20, 2015
.gitignore first commit Aug 9, 2015
README.md add MIT License Aug 20, 2015
TransitionPlayer.iml first commit Aug 9, 2015
build.gradle first commit Aug 9, 2015
gradle.properties first commit Aug 9, 2015
gradlew first commit Aug 9, 2015
gradlew.bat first commit Aug 9, 2015
settings.gradle first commit Aug 9, 2015

TransitionPlayer


一个动画进度可以控的动画库,实现炫酷的 APP 引导动画
image


Demo1 SimpleTransition



image


Code:



    ......
TransitionManager.beginDelayedTransition(mSceneRoot, transitionPlayer);

imageView.setRotation(360);
imageView.setRotationX(270);
imageView.setRotationY(180);
imageView.setTranslationX(70 * getResources().getDisplayMetrics().density);
imageView.setScaleX(0.2f);
imageView.setScaleY(0f);
imageView.setBackgroundColor(getResources().getColor(android.R.color.holo_blue_bright));
......
drawerLayout.setDrawerListener(new DrawerLayout.SimpleDrawerListener() {
public void onDrawerSlide(View drawerView, float slideOffset) {
transitionPlayer.setCurrentFraction(slideOffset);
}
});





Demo2 MaterialMenu



image


Code:



    ......
int[] layouts = new int[]{R.layout.material_menu_option, R.layout.material_menu_back, R.layout.material_menu_y};
Scene scene = Scene.getSceneForLayout(mSceneRoot, layout[random.nextInt(layouts.length)], context);
TransitionManager.go(scene, transitionPlayer);
......
drawerLayout.setDrawerListener(new DrawerLayout.SimpleDrawerListener() {
public void onDrawerSlide(View drawerView, float slideOffset) {
transitionPlayer.setCurrentFraction(slideOffset);
}
});


Demo3 ChromeAppIndexPage



image



相关源码推荐:

我来说两句
所有评论(67)
py785320051 2016-4-26 21:48:09
正需要啊,感谢楼主无私分享!
回复
Seven617 2016-4-26 21:56:04
楼主威武啊,安卓巴士有你更给力!
回复
apkbusgj 2016-4-27 10:25:16
我只是路过打酱油的。
回复
wooddawn 2016-4-27 10:33:37
强烈支持楼主ing……
回复
bruce103 2016-4-27 14:35:34
虽不明,但觉厉!
回复
bruce103 2016-4-27 14:38:16
很给力,安卓巴士有你更精彩!
回复
bruce103 2016-4-27 15:41:45
我想知道这样的工程,怎么跑起来?
回复
提取码:  下载次数:51 状态:已购或VIP 售价:10(原价:10)金钱 下载权限:初级码农 
3023 0 51
代码贡献英雄榜
用户名 下载数
联系我们
首页/微信公众账号投稿
帖子代码编辑/版权问题
QQ:435399051,1294855032
如何获得代码达人称号?
如何成为签约作者?
领先的中文移动开发者社区
18620764416
7*24全天服务
意见反馈:1294855032@qq.com

扫一扫关注我们

Powered by Discuz! X3.2© 2001-2019 Comsenz Inc.( 粤ICP备15117877号 )