Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Posts: 145
Registered: ‎01-23-2012
My Device: 9300
My Carrier: airtel

screen add to another

Hi All,

          Is it possible to add one screen to another screen top.

 

 

 

 

Thanks

Developer
Posts: 255
Registered: ‎05-03-2012
My Device: 9930
My Carrier: Vodafone

Re: screen add to another

Can you please explain what you exactly want to do?
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: screen add to another

UIApplication.getUiApplication.pushScreen(new ScreenConstructor());

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: screen add to another

screens are stacked on top of eachother, so you cannot "add" a screen to another, but you can show it on top of it.

if you want to add stuff to a screen, use a container.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Trusted Contributor
Posts: 145
Registered: ‎01-23-2012
My Device: 9300
My Carrier: airtel

Re: screen add to another

[ Edited ]

Hi All,

 

           Thanks for your response, i am looking that on top of the screen to place another screen. while click a button, top screen should move.

 

 

Thanks

Highlighted
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: screen add to another

as Deepu_George_Jacob wrote, you can use pushScreen to push a new screen.

If you want to animate the transition you can use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/ui/TransitionContext.html
see
http://docs.blackberry.com/en/developers/deliverables/11958/Screen_transitions_detailed_overview_806...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter