Click here to Skip to main content
15,889,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Java
private static class RichListScreen extends MainScreen
   {
       public RichListScreen()
       {
           super(Manager.NO_VERTICAL_SCROLL);

           setTitle("Rich List Demo");

           add(new LabelField("BlackBerry Devices", LabelField.FIELD_HCENTER));
           add(new SeparatorField());

           Manager mainManager = getMainManager();

           RichList list = new RichList(mainManager, true, 2, 1);

           Bitmap bitmap1 = Bitmap.getBitmapResource("9500.png");
           Bitmap bitmap2 = Bitmap.getBitmapResource("9000.png");

           list.add(new Object[] {bitmap1, "Device 1", "BlackBerry Smartphone 9500", "Description of Device 1."});
           list.add(new Object[] {bitmap2, "Device 2", "BlackBerry Smartphome 9000", "Description of Device 2."});
       }
   }


I used above code to implement a table in blackberry.It requires
Java
super(Manager.NO_VERTICAL_SCROLL); 
. It prevent the scrolling of the screen. But I want to add a vertical scroll to the table. Is there any special way to add vertical scroll to a table in blackberry. Thanks.
Posted
Updated 6-Sep-12 20:52pm
v2

1 solution

I'm no Blackberry developer - But I have a total wired idea:

What happens if giving "0" instead of Manager.NO_VERTICAL_SCROLL to MainScreen as an argument?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900