BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-28-2009, 06:01 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down How Develop a UI application Screen with effects

Please Login to Remove!

How Develop a UI application Screen with effects like landscape/slide (left to right) or slide (right to left).Does anyone know how to do that please help me ..with sample code.
Offline  
Old 09-01-2009, 03:29 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

it's available in 5.0 os: Screen Transitions
Offline  
Old 09-01-2009, 03:38 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default No there is no API in the JDE 5.0 javadoc

net.rim.device.api.ui.TransitionContext ,Dont know how to use the TransitionContext

please help me..
Offline  
Old 09-01-2009, 03:49 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

it's not available yet, it's in the beta os/jde. the point is it's not worth spending time on it when it'll be a native feature within a few months.

viigo are the only 3rd party software house (that i'm aware of) that currently have the transitions and i've no idea how they managed to get it so smooth.
Offline  
Old 09-01-2009, 05:31 AM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, facebook and some other TV application i have seen they are using effects .By using Bitmap they are deriving the effects.


this like will help i think

Animated Screen transitions - Java Development - BlackBerry Support Community Forums


But i have tried the same not able to make it working ...They are suggesting that use Bitmap for that ..

but dont know how to use.If you have tried anything let me know
Offline  
Old 09-01-2009, 09:14 AM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i've seen that thread, it's not a great help. you can use the Display class to get a screenshot of the current screen and pass it to the constructor of the new screen class you're pushing and then animate it off screen by overriding the paint method.

you'd need to implement some tweening algorithm to handle the fluid movement (good resource: Robert Penner's Easing Equations)

but as it'll soon be a native feature i decided it's not worth the effort!
Offline  
Old 09-01-2009, 09:26 AM   #7 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok..Thanks ..i will try ..
Offline  
Old 09-01-2009, 11:29 PM   #8 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

How to get the Screenshot of the current Screen uding Display.ScreenShot() ??
Offline  
Old 12-21-2009, 12:37 PM   #9 (permalink)
New Member
 
Join Date: Dec 2009
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Screen Effects

Hi,

I think you can implement screen effects with code that will run on most BBs.

See pages 127-129 of "Beginning BlackBerry Development," by Anthony Rizk.

Alternatively, couldn't you use the Timer and TimerTask components to just move a Field or object off of the screen? Set the TimerTask to change the X or Y component of the Field or the object that you want to animate, until it is moved off screen. Schedule the task to occur every 200 to 300 milliseconds for a smooth transition.

That may work!

I have the above-noted text by Rizk, but haven't yet implemented the example code he provides. I believe it works.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Genuine OEM IBM Wheelwriter Print Wheels
$30.0
Genuine OEM IBM Wheelwriter Print Wheels pictureNew OEM IBM easystrike lift off tape cassette in the box 1337765
$6.4
New OEM IBM easystrike lift off tape cassette in the box 1337765  pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$29.0
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureMEGAFRAME / IBM OEM4006 BBK-PC Rev 1.2 K325 Transputer Board
$1786.0
MEGAFRAME / IBM OEM4006 BBK-PC Rev 1.2 K325 Transputer Board pictureIBM OEM Selectric Electric Typewriter 1280105 Replacement Spring Kit NOS
$19.99
IBM OEM Selectric Electric Typewriter 1280105 Replacement Spring Kit NOS picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.