Android 动画开始新的 Activity 或关闭 Activity
Android 中是否有各种可用的视图动画的教程或代码示例。基本上我想做的是,如果开始一个新的活动,我试图让该活动开始,比如放大直到它填满屏幕,或者在我要完成活动时淡出。我有办法做到这一点吗?
任何帮助将不胜感激。
谢谢 -昌杜
Is there a tutorial or a code example of various kinds of View Animations available in Android. Basically what I am trying to do is say if start a new Activity, I am trying to get that activity start out like zoom in till it fills the screen or Fade out when I am going to finish the activity. Is there a way i can do this ?
Any help will be greatly appreciated.
Thanks
-Chandu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,您需要从活动中使用 OverridePendingTransition: http://developer.android.com /reference/android/app/Activity.html
一些淡入/淡出的示例可以在这里找到:http://www.anddev.org/novice -tutorials-f8/splash-fade-activity-animations-overridependingtransition-t9464.html
缩放:
So you need to use OverridePendingTransition from the activity: http://developer.android.com/reference/android/app/Activity.html
Some examples with Fade in/out can be found here: http://www.anddev.org/novice-tutorials-f8/splash-fade-activity-animations-overridependingtransition-t9464.html
Zoom: