将按钮添加到 BlackBerry 中的 ListField
I am using a ListField in BlackBerry and want to include a button with two text fields in the row like:
Button
Text1
Text2
But I am not able to add the buttons. All the help I've found is about adding images.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看看如何在黑莓中自定义列表字段和Blackberry - 如何向列表字段添加字段
Take a look at How to customize list field in blackberry and Blackberry - how to add fields to listfield
默认情况下...列表字段将焦点集中在整个单行上...而不是一行上的单个字段(正如您所说,您要添加三个字段...按钮、文本字段、文本字段)。
所以我想知道为什么你想在一行中添加按钮和两个单独的文本字段...我认为如果你想只关注按钮或只关注文本字段这并不容易...在列表字段的单行中。
顺便说一句...这是示例代码........您如何在单行列表字段中创建三个字段...
只需在主屏幕的类中调用此列表字段类的构造函数即可添加它就像...
DetailListField 类 -
bt 我仍然不知道如何关注单行的单个字段...
by default ... list field provides the focus on a single row as a whole....and not to the single field on a row(as u told that u want to add three fields....buttons, textfield, textfield).
so i want to know why do u want to add buttons and two separate text-fields in a single row... I think its not easy if u want to get focus only on button OR only on a text-field....in a single row of a list field.
by the way... here is the sample code........ how u create three fields in a single row of list field...
just call the constructor of this list-field class in ur main screen's class and add it like.....
DetailListField class -
bt still i dont know how to get focus on single field of a single row...
用法:
代码:
usage:
code: