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
Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Set Background image to custom popUpdialog

Hi,

 

I want to display custom pop up which have a background image. I tried to override the paint method of the popup and drawBitmap using the graphics object but it will not draw the image in the screen.

 

Please use plain text.
Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Set Background image to custom popUpdialog

[ Edited ]
 

Hi @

 

Have you tried setBackground?

 

If that won't work, try posting your code as someone might find a problem with it.

 

E.

Please use plain text.
Developer
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: Set Background image to custom popUpdialog

explore following api

 

BackgroundFactory

Background

 

explore following  function

getMainManager()

setBackground()

 

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Please use plain text.
Super Contributor
pp
Posts: 278
Registered: ‎11-04-2010
My Device: 4.5 and above
My Carrier: none

Re: Set Background image to custom popUpdialog

Hi,
When you override paint in poopup you should override this also
This does nothing.. dont write any code inside.
protected void applyTheme(){}

Regards,
pp
Please use plain text.