将垂直滚动添加到表格视图 [英] Add a vertical scroll to a table view

查看:67
本文介绍了将垂直滚动添加到表格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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."});
       }
   }



我使用上面的代码在blackberry中实现了一个表,它需要



I used above code to implement a table in blackberry.It requires

super(Manager.NO_VERTICAL_SCROLL); 

.这样可以防止屏幕滚动.但是我想向表中添加垂直滚动.有没有什么特殊的方法可以向Blackberry中的表添加垂直滚动.谢谢.

. 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.

推荐答案

我不是Blackberry开发人员-但我有一个完整的想法:

如果将MainScreen作为参数提供"0"而不是Manager.NO_VERTICAL_SCROLL会发生什么?
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?


这篇关于将垂直滚动添加到表格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆