Android 视差动画

发布于 2024-11-29 08:48:43 字数 235 浏览 3 评论 0原文

要求: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

说好的呢 2024-12-06 08:48:43

如果您尝试使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文