BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-28-2009, 06:01 AM   #1
praveens
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
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
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
Default

it's available in 5.0 os: Screen Transitions
Offline  
Old 09-01-2009, 03:38 AM   #3
praveens
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
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
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
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
praveens
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
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
hippocamp software
Thumbs Must Hurt
 
Join Date: Feb 2009
Model: 9000
PIN: N/A
Carrier: T-Mobile
Posts: 67
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
praveens
Thumbs Must Hurt
 
Join Date: Apr 2008
Location: india
Model: 8700
PIN: 12345
Carrier: Airtel
Posts: 62
Default

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

How to get the Screenshot of the current Screen uding Display.ScreenShot() ??
Offline  
Old 12-21-2009, 12:37 PM   #9
e141
New Member
 
Join Date: Dec 2009
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 1
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$74.00



Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ picture

Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ

$199.00



MAC USA 18-6 XDM Six Points 18 MM Socket 3/8

MAC USA 18-6 XDM Six Points 18 MM Socket 3/8" Drive Used Vintage Excellent Condt

$14.99



Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower picture

Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower

$55.24



Vintage White APPLE IMAC EMC 1857 15

Vintage White APPLE IMAC EMC 1857 15" 20GB HDD Mac OSX 10.2 256MB RAM 500MHz

$85.00



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$50.00







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