Stretch Columns Evenly In A TableLayout In Android
Posted by blogmeister on
March 20, 2011
If you want to have columns in your TableLayout having even widths, use the android:stretchColumns attribute and use the asterisk value to have all of them evened out.
|
1 |
android:stretchColumns="*" |
Or … you can do it using the uneasy route by doing this
|
1 |
android:stretchColumns="0,1,2" |
This sample is if your TableLayout has 3 columns.
Donations appreciated. Every little $ helps. Or click Google +1.









