在 Blackberry 上显示表格数据

发布于 2024-08-21 09:46:09 字数 230 浏览 5 评论 0原文

我基本上想在黑莓上复制这个 - http://img641.imageshack.us/ img641/4628/tempi.jpg

有没有一种简单的方法可以做到这一点,而不是搞乱 ListView 的图形对象?

谢谢,
泰贾

I basically want to replicate this on the blackberry - http://img641.imageshack.us/img641/4628/tempi.jpg

Is there a simple way of doing it instead of messing around with the graphics object of ListView?

Thanks,
Teja

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

世俗缘 2024-08-28 09:46:09

查看“显示复杂记录列表”(zip 文件)示例来自 Blackberry Development Labs 页面。

它教您如何实现一个名为 TableListField 的类,并包含一个可供您使用的完整源文件。 TableListField 基本上允许您将多个项目放置在 ListField 的一行中并选择整行。

Take a look at the "Displaying a List of Complex Records" (zip file) sample from the Blackberry Development Labs page.

It teaches you how to implement a class called TableListField, and includes a completed source file that you can use. The TableListField basically lets you place multiple items in a row of a ListField and select the whole row.

妄断弥空 2024-08-28 09:46:09

如果您不想实现自己的 ListFieldCallback 实现,则唯一的其他“预构建”实现是 ObjectListField 类 - 但您将仅限于以下列表字符串,看起来您想要对 UI 进行更多控制,包括具有多个数据、图像等的固定宽度列。

所以基本上 - 渲染自定义 UI(例如您想要的 UI)的唯一方法是实现您的自己的 ListFieldCallback 包括 drawListRow() 方法。

If you don't want to implement your own ListFieldCallback implementation the only other "pre-built" implementation is the ObjectListField class - but you'd be limited to a list of strings and it looks like you want a lot more control over the UI including fixed-width columns with multiple pieces of data, image, etc.

So basically - the only way to render a custom UI such as the one you want is by implementing your own ListFieldCallback including the drawListRow() method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文