活动启动动画服务 [英] Launching activity with animation Service

查看:132
本文介绍了活动启动动画服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一种方式来从服务启动一个活动/应用动画。对于我尝试了好几种方法,但他们失败了。我试图用 overridePendingTransitions()但是,这并不在服务工作。

I am looking for a way to launch an activity/app with animation from a service. For that I have tried several ways but they failed. I tried to use overridePendingTransitions() but that doesn't work in service.

那么,有没有与从服务中推出的动画活动/应用的意图的方式?

So is there a way to launch activity/app intent with animation from service?

推荐答案

的http:/ /www.youtube.com/watch?v=CPxkoe2MraA 切特哈斯(在Android工程师动画框架工作之一)显示了可被添加到意图一些额外参数从软糖开始只将可能从工作服务。我建议给它一个尝试。

on this DevByte http://www.youtube.com/watch?v=CPxkoe2MraA Chet Haase (one of the Android engineers working on the animation framework) shows some extras parameters that can be added to the intent starting from JellyBean only that would possibly work from a Service. I suggest giving it a try.

和这里有一个从支持库,在一些这些东西可以帮助一个类:的http://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat.html

and here there's a class from the support library that helps on some of those stuff: http://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat.html

这篇关于活动启动动画服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆