Note that there are some explanatory texts on larger screens.

plurals
  1. POCan someone explain why the row is not wrapping the text in this TableLayout?
    text
    copied!<p>I am having trouble with this for some reason... The column with the "name" shouldn't take up as much space as it does. The column does not wrap the text. The setup below is what I've been using and it has worked previously. What am I missing? Could there be something up with Eclipse?</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fadingEdgeLength="100dp"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;TableLayout android:id="@+id/tableLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#333333" android:stretchColumns="*"&gt; &lt;TableRow android:layout_margin="1dp" android:background="#333333" android:gravity="center"&gt; &lt;TextView android:gravity="center" android:padding="3dip" android:text="Friends" android:textColor="#000000" android:textSize="22dp" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_margin="1dp" android:background="#000000"&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="Name" android:textColor="#ffffff" android:textSize="15dp" /&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="Address" android:textColor="#66cccc" android:textSize="15dp" /&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="Interests" android:textColor="#006666" android:textSize="15dp" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_margin="1dp" android:background="#000000"&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="This is short" android:textColor="#ffffff" android:textSize="13dp" android:width="0dip" android:layout_width="wrap_content" android:layout_height="match_parent"/&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="This is some text that might be too long and might need to wrap to the next line." android:textColor="#cc0033" android:textSize="13dp" android:width="0dip" android:layout_height="match_parent" android:background="#222222" /&gt; &lt;TextView android:gravity="left" android:padding="3dip" android:text="This is some text that will be long so it needs to wrap and go to the next line blah blah blah." android:textColor="#99cc00" android:textSize="13dp" android:width="0dip" android:layout_height="match_parent" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload