Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 136
Registered: ‎01-25-2010
My Device: Z30, Z10, Q10, Dev Alpha B & Bold 9900
My Carrier: Bell
Accepted Solution

How to display two lines of data in a single row using TableListField

Hi,

 

I’m trying to display multiple lines of data into a single row using the TableListField. The result I’m trying to achieve is similar to how the WeatherBug application displays the short term weather…


Ie:

Tuesday     Hi: 8C    Mostly
            Lo: 0C    Cloudy

Wednesday   Hi: 8C    Mostly
            Lo: 0C    Cloudy


I tried encapsulating my data rows within a VerticalFieldManager, but only the first line of data get’s displayed. The following warning message is being outputted: WARNING: Cannot layout field, insufficient height

So I’m assuming that the underlying class TableListField does not support column of type VerticalFieldManager ?

 

Any suggestion on how I should approach this Issue?

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to display two lines of data in a single row using TableListField

you have to use setRowHeight to allow the correct row height in the listfield. I don't know about TableListField, usually you draw the rows yourself using drawListRow.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Developer
Posts: 136
Registered: ‎01-25-2010
My Device: Z30, Z10, Q10, Dev Alpha B & Bold 9900
My Carrier: Bell

Re: How to display two lines of data in a single row using TableListField

Thanks, just noticed it while snooping around in some examples...