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
Posts: 257
Registered: ‎05-05-2011
My Device: 9700
My Carrier: AT&T

Customizing PopUp Screen

Hi everyone,

 today I tried to make my popup screen look nice but faced a problem (take a look at picture):

 

   9700.jpg

 

how do I remove these margins from top and left borders of popup screen?

 

Developer
Posts: 263
Registered: ‎10-27-2010
My Device: 8520

Re: Customizing PopUp Screen

i am unable to find the original iamge..

 

will you upload  it again ???

Super Contributor
Posts: 257
Registered: ‎05-05-2011
My Device: 9700
My Carrier: AT&T

Re: Customizing PopUp Screen

9700.jpg

Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Customizing PopUp Screen

you can use setPosition inside the popupscreens sublayout method.
also call layoutDelegate and setExtent (with the width/height you want)
----------------------------------------------------------
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.
@SimonHain on twitter
Highlighted
Developer
Posts: 166
Registered: ‎01-14-2009
My Device: Curve 8330

Re: Customizing PopUp Screen

[ Edited ]

Have you tried something like this? You need to override this method of PopupScreen. I know that this is working find in OS 4.5.

 

/**
 * Override it and do nothing to take off the black lines around the box
 */
protected void applyTheme() {
	// Nothing to do here
}

 

Thank you, have a nice day.

--
Samuel D.