How to stretch a TableLayout

3 messages - 1133 views

Hi,

Is there a way to stretch a TableLayout to fill the screen horizontally? See these images for instance:

TableLayout GridLayout(4,4)

The first image is a TableLayout container with one single container in the middle, while the second one is a GridLayout(4,4) with four middle containers that uses the whole screen. What I need is a mix of these two examples: a single middle container like TableLayout, but stretched like GridLayout.

Suggestions? :-)

why not just use girdlayout?if u want to make one column fixsize,use min-size css property,but it won't work if the content length is larger the min-size,Kuix have not fix size property.Another problem is that u can't fill one column so that the table can fill the screen,grid layout can do,but all column set to same size.

modify the source code if u want to do more.

I don't know if I understood your suggestion, here is an obstacle. I can use GridLayout(3,4) setting the middle column to 2x the width of the side-columns, and then I create another container at the first and last cells of the middle column setting GridLayout(2,1) to it too. But how can I measure the width of the side-columns?

Well, modifying the source code is always an option, but I prefer first to report problems or difficulties so that the framework can be improved. One suggestion, for example, is to implement the applicability of the style-property span(col,row) to the GridLayout (why just TableLayout?).

Regards