Android 3D Flipview涉及GLSurfaceView

发布于 2025-01-06 04:57:58 字数 406 浏览 3 评论 0原文

我正在基于以下想法实现 3d 翻转视图:

http: //techdroid.kbeanie.com/2011/07/flip-animation-in-android.html

我有两个视图,其中一个是从 GLSurfaceView 扩展的,并且有一个自定义渲染器设置在它上面。如果其中一个视图基于 GLSurfaceView,则翻转工作正常,但否则,当翻转进行到一半时,一旦基于 GLSurfaceView 的视图可见,动画将不起作用,并立即显示该视图,而不是平滑地过渡到该视图。有什么想法造成它吗?

就像发生半翻转一样,然后渲染半视图而不使用动画。

I'm implementing a 3d flip view based on following idea:

http://techdroid.kbeanie.com/2011/07/flip-animation-in-android.html

I have two views and one of them is extending from GLSurfaceView and has a custom renderer set on it. The flip works fine if one of the view is based on GLSurfaceView but otherwise when the flip is halfway through as soon as the GLSurfaceView based view is made visible the animation does not work and immediately displays the view instead of smoothly transitioning to it. Any ideas what is causing it ?

Its like half flip takes place and then the half view is rendered without animation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文