在 Blackberry 上显示表格数据
我基本上想在黑莓上复制这个 - 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看“显示复杂记录列表”(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.
如果您不想实现自己的
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 theObjectListField
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 thedrawListRow()
method.