title: Android fill table dynamical with layout
body: <p>I try to fill a table on Android with predefined Row- and Field-Layouts. The result should be a 6x5 (or 6x4) Table with only coloured fields, that have a black border.</p>
  
  <p>So i created the activity layout:   </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="abc" /&gt;
      &lt;TableLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:stretchColumns="*"
          android:shrinkColumns="*"
          android:background="#000000"
          android:id="@+id/beertable"&gt;
      &lt;/TableLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the Row layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;TableRow xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
  &lt;/TableRow&gt;
  </code></pre>
  
  <p>And here the field layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;View xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="30dip"
      android:background="#ffc35a"
      android:layout_margin="1dip"&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p>In my Activity i tried a for-loop to insert rows and fields, but when I test this code, i only see the text "abc" and then the rest of the screen is in the color of the fields. There are no borders, and i cant see where the table starts and stops.</p>
  
  <pre><code>public class WG extends Activity {    
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.setContentView(R.layout.activity_wg);
          TableLayout table = (TableLayout) findViewById(R.id.beertable);
  
          TableRow ll;
          View beerField;
  
          for(int i = 0;i&lt;6;i++)
          {
              ll = (TableRow) getLayoutInflater().inflate(R.layout.wg_beer_row, null);
              table.addView(ll);
              for(int a=0;a&lt;5;a++)
              {
                  beerField = (View) getLayoutInflater().inflate(R.layout.wg_beer_field, null);
                  ll.addView(beerField);
              }   
  
          }    
      }
  }
  </code></pre>
  
  <p>May someone show me the mistake?</p>