tags:

views:

303

answers:

2

I am displaying a table of values in my android application, and would like the columns to be distributed evenly in terms of size , instead of sizing according to content.

Been playing around with stretchColumns but couldn't manage to figure out the right combination, Any Ideas?

+1  A: 

You control the size of the columns by the size of their contents. If you want them all to be the same size, set that up via android:layout_width in the appropriate cells.

CommonsWare
+2  A: 

Hi, I had the same problem, i always only entered one number in

android:stretchColumns

but you have to enter all columns that should be streched, so if you have 3 columns you have to write:

android:stretchColumns="0,1,2"

or just write

android:stretchColumns="*"

then all columns will have the same size

Sponge