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
Trusted Contributor
Posts: 151
Registered: ‎06-17-2010
My Device: Curve 8900
My Carrier: Vodafone
Accepted Solution

how to change Row Height in tableLayoutManager?

Hiii all,

 

i have used TableLayoutManager in my application but don't know how to increase row height.

i am using this reference Link for TableLayoutManager.

 

How To - Create a rich UI layout with TableLayoutManager
Article Number: DB-00783

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

 

 

and i want to make the whole row height 68 px..  

 

any body can help me how to change RowHeight in tableFieldManager?

Highlighted
Contributor
Posts: 37
Registered: ‎10-15-2010
My Device: Not Specified

Re: how to change Row Height in tableLayoutManager?

anyone??????

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to change Row Height in TableLayoutManager?

[ Edited ]

My understanding is that TableLayoutManager will use the largest height of cell in a Row, to set the height for that row.  There is no way with the supplied code to tell it to use 68 px.

 

So you have two choices

 

a) Make sure one of the Fields you add in each Row is 68 px height

 

b) Change the layout code in TableLayoutManager so the minimum Row height it uses is 68 px.

Contributor
Posts: 14
Registered: ‎08-17-2010
My Device: Not Specified

Re: how to change Row Height in TableLayoutManager?

add to what Peter just said...

 

You can create a 1px width transparent png file with the required height you need (68px in your case). Add it as bitmapfield in the last (spacer) column.

 

Let me know if it works for you!

Trusted Contributor
Posts: 151
Registered: ‎06-17-2010
My Device: Curve 8900
My Carrier: Vodafone

Re: how to change Row Height in TableLayoutManager?

@peter

 

thanks peter for your reply.

 

I have solved the problem as you indicate in changing Tablelayoutmanager.java before 5 months.

 

i requested you to reply our post as early as possible..

 

any way,

thanks.

 

regaurds,

Albert_anks

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to change Row Height in TableLayoutManager?

Sorry Albert_Anks, there are only so many hours in the day.  Smiley Sad

 

And I do try to look at all the Threads I think I can contribute to....  Smiley Happy

Visitor
Posts: 1
Registered: ‎07-26-2011
My Device: Torch
My Carrier: Singtel

Re: how to change Row Height in TableLayoutManager?

how exactly did you do that? can i see the codes?