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
Developer
Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _
Accepted Solution

Set background color as screen size.

I want to set the background color of screen.. as long as screen size.

 

I tried but background color not displaying on complete screen.

 

VerticalFieldManager vfm = new VerticalFieldManager(Field.FIELD_HCENTER);

vfm.setBackground(BackgroundFactory.createSolidBackground(0xEEF3FA));

 

If I use here UseFULL Height then my screen scroll to much on bottom.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Set background color as screen size.

Have a look at this to understand your problem better.  Read the comments too.

http://supportforums.blackberry.com/t5/Java-Development/MainScreen-explained/ta-p/606644