12-23-2010 04:31 PM
I am trying to create a list of items using qnx.ui.listClasses.List . I have a customCelleRenderer that extends CellRenderer. I have a background image whose height is 110 pixels. Currently I have 4 items in the list. When I execute my application, all four items show up but when I trace the height of the CustomCellRenderer it shows as 47 pixels.
Is this the minimum height of the CellRenderer? How do I make it so that my height of each cell is 110 pixels?
I am new to qnx components. Please help. Thanks.
Solved! Go to Solution.
12-23-2010 04:37 PM
key kminkeller,
Lists and cell renderers are a tough to crack but we've been at it trying to figure it out. From the looks of we must apply the height to the List object via the List.rowHeight property in the main class (or which ever class you initiate the List object). by doing that you would be changing the heights of all the cells. the draw back though is waterver height you set it at will be the height for all the cells. but since it wont be a problem for you it works out.
here's more info about the property:
http://www.blackberry.com/developers/docs/airapi/1
hope that helps. good luck!
12-23-2010 04:42 PM
Thanks a lot J.Rab. You saved my day.
12-23-2010 04:53 PM
haha!
any time! if saving the day is what you're into there are a ton of heroes on this forum!
(alright that was cheesy but i couldn't resist.. welcome to the forums anyway
)
12-23-2010 05:19 PM
Yea the reason is I have a demo that I need to do it on Tuesday. So these small things (that are big for me atleast) are like the A priority in my list that needs to be fixed by Monday and have them tested. So you are the hero for me.