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

BlackBerry Themes & Animated Graphics

Reply
Developer
ankur_siwach
Posts: 148
Registered: ‎09-28-2012
My Device: Blackberry Developer

How to constant a background in blackberry...

I am using a background images.Through below mentioned code..

Bitmap bitmap = Bitmap.getBitmapResource("480overlay.jpg");
int h1=(int) (Display.getHeight()*0.-02);
Bitmap bitmapBG = resizeBitmap(bitmap,Display.getWidth(),(Display.getHeight()-h1));
this.getMainManager().setBackground(BackgroundFactory.createBitmapBackground(bitmapBG));

 

on this screen I am using number of image on a button..2 or 3 button in a row using gridfieldmanager.But when I m scrolling on the screen my background image is moving .I want to constant that background images and my button should move except the background image....

Can some one suggest me...On this..???????


----------------------------------------------------------
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.
Developer
ankur_siwach
Posts: 148
Registered: ‎09-28-2012
My Device: Blackberry Developer

Re: How to constant a background image in blackberry...

can any one have any idea..about this....


----------------------------------------------------------
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.