title: tableRow entries go off screen
body: <p>I am using a table layout to show information based on a user specifications. The user enters data into a database, then this data is taken and displayed on a table were each row has 3 textView entries. The problem is that if the data entered by the user is to long, it goes off screen and is not visible. Any ideas? The code I used to do this is below:</p>
  
  <p>xml</p>
  
  <pre><code>&lt;TableLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:stretchColumns="*"
      android:id="@+id/tl"&gt;
  &lt;TableRow
          android:id="@+id/tableRow1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="1dp" &gt;
  
          &lt;TextView
              android:id="@+id/timeCol"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Time"
              android:textSize="20sp"
              android:textStyle="bold"
              android:textColor="#FF0000"/&gt;
  
          ....
  
      &lt;/TableRow&gt;          
  &lt;/TableLayout&gt;
  </code></pre>
  
  <p>Java</p>
  
  <pre><code> for (final String time : timesArray) 
      {
          i++;
          TableRow row1= new TableRow(this);
  
          event = db.getEvent(i, gameId);
          player = db.getPlayer(i, gameId);
  
          TextView timeRow = new TextView(this);
          TextView playerRow = new TextView(this);
          TextView eventRow = new TextView(this);
  
          timeRow.setText(time);
          timeRow.setTextColor(Color.WHITE);
          playerRow.setText(player);
          playerRow.setTextColor(Color.WHITE);
          eventRow.setText(event);
          eventRow.setTextColor(Color.WHITE);
  
          row1.addView(timeRow);
          row1.addView(playerRow);
          row1.addView(eventRow);
  
          tl.addView(row1);  
      }
  </code></pre>
  
  <p>And it looks like this if the data is too long<img src="https://i.stack.imgur.com/bGXbS.png" alt="enter image description here"></p>