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
Highlighted
Developer
Developer
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

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.

 

 

 

 

New Developer
Posts: 28
Registered: ‎07-21-2008
My Device: Not Specified

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?
BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
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.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 23
Registered: ‎04-22-2009
My Device: Not Specified

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.

BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
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.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker