Android 视差动画
要求:Honeycomb 3.1,Galaxy Tab 10.1
我正在开发一个项目,需要在从一个元素到另一个元素的过渡中使用视差动画,这些元素位于类似于图库的组件中,我需要的是当用户在屏幕上滑动时为了导航到不同的组,这些组上的元素使用视差方法进行动画处理。
我已经使用基本动画方法对位图进行了动画处理,但速度很慢,因此目前我正在使用 SurfaceView 进行测试。
您认为实现这一目标的最佳方法是什么?
Requirements: Honeycomb 3.1, Galaxy Tab 10.1
I'm working on a project that requires Parallax animation in the transition from one element to another, the elements are in a component similar to the Gallery and what I need is when the user swipes over the screen to navigate to the different groups, the elements on these groups are animated with a parallax approach.
I have tested with the basic animation approach animating the bitmaps but it's slow so currently I am testing with SurfaceView.
What do you think is the best approach to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您尝试使用 Android SDK 附带的 JetBoy,您可以看到视差位图在 SurfaceView 上滚动的质量。我发现使用 openGL 时,巨大的精灵和背景的平滑滚动看起来当然更平滑。
If you try JetBoy which comes with Android SDK, you can see the quality of a paralax bitmap scrolling on SurfaceView. I find that smooth scrolling of huge sprites and background looks of course smoother with openGL.