开发者

Blackberry Screen Transitions on close

Hey everyone,

I'm doing a Blackberry App compatible with OS4.5+ and I'd like to do some scre开发者_如何学编程en transitions. I know how to do them through the screen's sublayout method when I push a screen to the UiApplication, but when I wan't to make one disappear (like when I press the back button), I can't seem to find anything.

Can anyone help?

Thanks in advance!


You will have to override the onClose() method on each of your screens.


I don't think you can do transitions for 4.5. But, since Blackberry API the setTransition method from UiEngineInstance class might help you.

EDIT:
It appears I misunderstood the question. Here's another idea: You said you know how to do the transition when you push the screen. Do that when you go back also. You can pop the old screen and then push it again and this way you will be able to handle transitions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜