Reputation: 1299
When I'm trying to do a neat table layout in android, and try to space the columns equally, all I get is this.
I cannot for the life of me equally space those columns out.
Upvotes: 0
Views: 601
Reputation: 72331
You are using wrong the android:stretchColumns
attribute. As you can see in the documentation it is the zero-based index
of the column to stretch. So you want to stretch the first column, you should use :
android:stretchColumns="0"
in yout TableLayout
.
Upvotes: 2