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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008

Re: Field with transparent background

I faced few times similar situations. So what I did is to use Graphics.getScreenHeight() instead of getContentHeight() and made sure that the verticalFieldManager has the Vertical_SCROLL enabled.

 

 

 

 

Please use plain text.
New Developer
Chouman82
Posts: 28
Registered: ‎07-21-2008

Re: Field with transparent background

Now I am facing another problem.  I have a list field with a background image.  After scrolling through the list field, the back ground image gets erased and doesn't get refreshed.  Is there something else that i need to do?
Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Field with transparent background

You'll need to refresh the image.  Calling invalidate on the screen or manager where the image is being drawn should do it.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
bibodo
Posts: 23
Registered: ‎04-22-2009

Re: Field with transparent background


Chouman82 wrote:

Hey Mark,

 

public BackgroundImage()
    {
        //The background image.
        backgroundBitmap = Bitmap.getBitmapResource("background.png");

        [...]
     }

 

 


Hi Chouman82,

 

I saw that you used the Bitmap.getBitmapResource method. I want to know where I have to put my image files in the project to get them found by this method.

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Field with transparent background

It shouldn't matter, this method should pull them out from anywhere within the COD file.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.