Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 android 应用程序,我想翻转我的应用程序(如 iPhone)。当用户触摸屏幕并向左或向右滑动时,它应该改变活动。
有人对我如何在代码中实现这一点有建议吗?
试试这个 http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html
我有另一个解决方案:
如果您不仅要翻转一个视图,而且要翻转具有所有视图的整个屏幕,则只有一种可能性:您必须使用 Fragment 并翻转它们。为此使用谷歌解决方案:谷歌示例
所以在你的项目中使用混合结构活动和片段