title: How do I programmatically add a tableRow to TableLayout in Xamarin
body: <p>So I have my layout that contains a TableLayout defined in my layout here</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:background="@drawable/defaultBackground_vert"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:id="@+id/mainLayout"&gt;
  &lt;TableLayout
      android:minWidth="25px"
      android:minHeight="25px"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:id="@+id/table"&gt;
  &lt;/TableLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And I am accessing it in my codebehind and trying to add a button to a table row and add that tablerow to the table:</p>
  
  <pre><code>private TableLayout _table
  private Button _button
  .
  .
  .
  _table = FindViewById&lt;TableLayout&gt;(Resource.Id.table);
  _button = new Button(this){Text = "&lt;"};
  _button = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
  var tableRow = new TableRow(this);
  tableRow.AddView(_button, 0);
  _table.AddView(tableRow, 0);
  </code></pre>
  
  <p>The problem is that the tableRow does not show up when I run my application. </p>