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
New Developer
shubhamoy
Posts: 1
Registered: ‎08-21-2008
My Device: Not Specified

Scrolling issue of a listfield placed on main screen background image.

I have placed a background image on a main screen and added a listfield on the screen,now I want the list field to be

scrolled vertically without scrolling the main screen image. But whenever I scroll the listfield items,the image is also getting scrolled. In short I want a stationary background image for a main screen.

Please provide a solution to this problem.

 

It's urgent. 

Please use plain text.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Scrolling issue of a listfield placed on main screen background image.

Wherever you are drawing the image (MainScreen paint probably), you could try using the clipping rect coordinates.

 

 

XYRect clip = graphics.getClippingRect(); graphics.drawBitmap( clip.x, clip.y, bitmap.getWidth(), bitmap.getHeight(), bitmap, 0, 0 );

 

 

 

Please use plain text.