2

IS it possible to create custom ListField in which row height should be variable according to parsed data? How to implement it?

DevBB
  • 35
  • 5

1 Answers1

1

No, It's not possible to have different row heights for a ListField.

From the API documentation:

Behaviour
Displays a vertical list of set height items.

Also, the method public void setRowHeight(int rowHeight) which sets the height of each row in the list field indicates that it is not possible.


Customised VerticalFieldManager can be used in this case, though for large set of fields it is not efficient.

[Updated]

From the post, change row height in ListField? answered by simon_hain in BlackBerry Support Forum,

there is an undocumented method setRowHeight(int, int). it can slow your UI down and, as all undocumented methods, should be used at own risk

Also, check this question asked on SO, Expand listfield row height dynamically in blackberry

Community
  • 1
  • 1
Rupak
  • 3,674
  • 15
  • 23