MaikelS
MaikelS

Reputation: 1299

Equally space columns with a table layout

When I'm trying to do a neat table layout in android, and try to space the columns equally, all I get is this.

http://i44.tinypic.com/1070xtw.png

I cannot for the life of me equally space those columns out.

Upvotes: 0

Views: 601

Answers (1)

Ovidiu Latcu
Ovidiu Latcu

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

Related Questions