使用 3d 翻转动画开始活动
我正在尝试启动一项活动并将过渡创建为 3d 翻转(正如许多人所说的与 iPhone 上的完全一样),不幸的是我还没有找到令人满意的答案,我陷入了困境。
我已经实现了 http://www.inter-fuser .com/2009/08/android-animations-3d-flip.html 对于整个布局,这样现在当按下某个按钮时,布局会翻转,但由于它引用的是未加载的活动中的布局,因此它们不会填充所有项目和数据(例如可扩展列表视图) )。
但是,当我在翻转后调用 startActivity() 时,会创建活动,这当然会隐藏调用者活动上的框架布局容器 - 所以我无法翻转回来......(我已经使用了 overridePendingTransition 但恕我直言,这不重要)。
我真的需要你的帮助,我快失去理智了...... 谢谢!
I'm trying to start an activity and create the transition as a 3d flip (as many have stated exactly like on the IPhone), unfortunately I haven't found a satisfying answer yet and I am stuck.
I've implemented http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html
for the whole layout so that now when pressing a certain button the layouts are flipped, but since it refers to layout that are in activities which weren't loaded, they don't fill all their items and data (an expandable list view for example).
But when i call startActivity() after the flip the activity is created which of course hides the framelayout container on the caller activity - so i can't flip back... (I've used the overridePendingTransition but imho it shouldn't matter).
I could really use your help am losing my mind...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抱歉,您无法执行此操作 - 窗口管理器当前仅支持 2d 动画。
Sorry you can't do this -- the window manager currently only supports 2d animations.
我还想将活动翻转为 3D 动画。我刚刚找到了这个解决方案 http://blog.robert -heim.de/karriere/android-startactivity-rotate-3d-animation-activityswitcher/
他们做什么.. startActivity 没有动画,任何应用 3D 旋转。
I also want to flip activity as 3D animation. I just found this solution http://blog.robert-heim.de/karriere/android-startactivity-rotate-3d-animation-activityswitcher/
What they does.. startActivity with no animation any apply 3D rotation on it.