Blackberry - how to add fields to listfield?

妖精的绣舞 提交于 2019-12-11 13:54:01

问题


I am using ListField but encouter a problem. How can i view it as i wish (not one by one)?
For instance, there is item1, item2, item3. Can i jump from item1 to item3 directly, ignoring item2 ?

In another way, how to insert a text field (a labelfield, for example) into the ListField items?

like this:

item1
a textlabel
item2
item3
......

let me describe it in another way:

that is, how to insert a text field(a labelfield,for example) into the ListField items. like this: item1 a textlabel item2 item3 ..


let me describe it in another way:

that is, how to insert a text field(a labelfield,for example) into the ListField items. like this: item1
a textlabel item2 item3 ......


回答1:


ListField is more like presentation/select control. You can implement custom layout/draw logic inside ListField, on example like in rtm4bb:

(source: googlecode.com)

But I dont know the way to add different controls into ListField. In such case I would recommend to use VerticalFieldManager with added fields.



来源:https://stackoverflow.com/questions/1635076/blackberry-how-to-add-fields-to-listfield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!