意见动画序列 [英] Animated sequence of views

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

问题描述

我想实现视图这样的:

在这个观点的所有儿童都必须动画,同时通过他们的滚动。

Inside of this view all children has to be animated while scrolling through them.

我要实现它为Android 2.X

I am going to implement it for android 2.x

我的第一个念头是创建自定义的视图扩展的FrameLayout和管理孩子的意见里面编程,检测手势并移动到下一个/ $ P $光伏子视图这些动画(大概规模和过渡动画)

My first thought was to create custom view extending FrameLayout and manage children views inside programatically, detect gestures and move to next/prev child view animating them (probably scale and transition animation)

你能指点我,怎么才达到的,也许有一个开源项目,它可以帮助我吗?

What can you advice me, how to achive that, maybe there is an open source project that can help me?

推荐答案

最后,我得到了我wan't,没有对这个问题没有简单的答案,只是说你必须所有的Andr​​oid UI框架通常做的工作:计算项目的位置,将其添加到正确的顺序,应用不同的效果(平移,缩放,淡出),并绘制在画布上。

Finally I got what I wan't, there is no simple answer on this question, but simply saying you have to all the work that android UI framework usually does: calculate position of items, add them in proper order, apply different effects (translate, scale, fade out) and draw it on canvas.

要achiev这一点,我follod这个非常有用的教程(感谢作者) 的http://blogs.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/

To achiev this I follod this extremely useful tutorial (thanks to author) http://blogs.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/

我想在某个地方加我的解决方案,在github上一次我修复所有缺陷,并使其completelly可重复使用的。

I am thinking to add my solution somewhere on github once I fix all bugs and make it completelly reusable.

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

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