Android Stretch columns evenly in a TableLayout

I had the same problem – I always only entered one number in android:stretchColumns, but you have to enter all columns that should be stretched. So if you have three columns, you have to write:

android:stretchColumns="0,1,2"

Or write:

android:stretchColumns="*"

Then all columns will have the same size. As a reminder, android:stretchColumns is an attribute for the TableLayout element.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)