Eric Bergman
Eric Bergman

Reputation: 1443

Make TableLayout Columns wrap to content

So I have the followign Layout:

TableLayout

    TableRow
        TextView0
        TextView1

    TableRow            
        TextView0
        TextView1

I"m trying to create this layout:

Course Information: Math 101 Education: Engineering

The problem is that the second column (TextView1) will be aligned to the right according to the largest text in column 1 (TextView0) Is there any way to make the second column directly align next to the first one?

Upvotes: 0

Views: 122

Answers (1)

CRUSADER
CRUSADER

Reputation: 5472

You are using TableLayout - TableRow and don't want to use their features... Well, then dont use TableRow . Make use of LinearLayout instead.

LinearLayout
    >TextView0
    >TextView1

LinearLayout
     >TextView0
     >TextView1

Upvotes: 1

Related Questions