在应用程序外部调用活动时Android自定义动画?

发布于 2024-12-27 02:48:36 字数 207 浏览 2 评论 0原文

我知道如何使用 overridePendingTranition 更改我自己的应用程序内活动之间的动画。我的问题是,例如,在发送打开 Youtube 视频的意图时,如何才能获得相同的结果。它可以正常工作,但由于 Youtube 应用程序不是半透明主题,我立即看到黑屏,然后内容使用我的动画滑入。无论如何,是否可以控制启动该活动的动画以及用户单击“返回”返回应用程序时运行的动画?

谢谢

I know how to use overridePendingTranition to change the animation between activities inside of my own application. My question is how can I get the same result when sending an intent to open a Youtube video for example. It will work correctly but because the Youtube application is not a translucent theme I see a black screen immediately and then the content slide in using my animation. Is there anyway to control the animation starting that activity as well as the animation that will run when the user clicks back to come back to your application?

Thanks

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

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

发布评论

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