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

- 35
- 5
1 Answers
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
-
Is any alternavtive control like `ListField` or the custom implementation of ListField available? – DevBB Jun 18 '12 at 11:24
-
What problems can be occured with undocumented methods? – DevBB Jun 18 '12 at 12:00
-
Because it's not possible to know what will the method do, we can guess only. – Rupak Jun 18 '12 at 12:22
-
how we can use `VerticalFieldManager` in such a case? – DevBB Jun 19 '12 at 05:25