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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Developer
Posts: 26
Registered: ‎06-24-2009
My Device: Not Specified

GridFieldManager scrolling problem



i added images in GridFieldManager,

        GridFieldManager grid = new GridFieldManager(2, 3, 0);
        Bitmap bitmap = new Bitmap(160,240);
        grid.add(new BitmapField(bitmap.getBitmapResource("Blue hills.jpg")));
        grid.add(new BitmapField(bitmap.getBitmapResource("Sunset.jpg")));
        grid.add(new BitmapField(bitmap.getBitmapResource("Water lilies.jpg")));
        grid.add(new BitmapField(bitmap.getBitmapResource("Winter.jpg")));
        grid.add(new BitmapField(bitmap.getBitmapResource("Blue hills.jpg")));




vertical scrolling working fine but, when i try to do horizontal scrolling it not happening.


please help me to resolve this issue.



Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom

Re: GridFieldManager scrolling problem

any sollutions here??

Posts: 180
Registered: ‎12-09-2011
My Device: 9360, BB10
My Carrier: Aircel

Re: GridFieldManager scrolling problem

add the grid field manager into a horizontal field manager and make it HORIZONTAL_SCROLL.


and then add that horizontal manager into the screen.

Trusted Contributor
Posts: 176
Registered: ‎04-12-2012
My Device: Bold 9780 & Curve 8250
My Carrier: vodacom

Re: GridFieldManager scrolling problem

GridFieldManager gfm = new GridFieldManager(1,6, Manager.HORIZONTAL_SCROLL | Manager.HORIZONTAL_SCROLLBAR | Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);

final CheckboxField back1_1 = new CheckboxField("", false,FOCUSABLE);
final CheckboxField back1_2 = new CheckboxField("", false,FOCUSABLE);
final CheckboxField back1_3 = new CheckboxField("", false,FOCUSABLE);

gfm.add(new BitmapField(Bitmap.getBitmapResource("facebook.png")));

gfm.add(new BitmapField(Bitmap.getBitmapResource("twitter.png")));

gfm.add(new BitmapField(Bitmap.getBitmapResource("icon.png")));