本文介绍了将垂直滚动添加到表格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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.
推荐答案
这篇关于将垂直滚动添加到表格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!