title: Android TableLayout CustomRow
body: <p>I am trying to make a day-calendar and for that I am using a tablelayout and I then want to define a custom row(layout xml) containing TextViews to be able to access data here is and example of my table layout:</p>
  
  <pre><code>    &lt;TableLayout
    android:id="@+id/appointmentListView"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;TableRow 
      android:id="@+id/tableRow1"&gt;
      &lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" 
          &gt;
  
          &lt;TextView
              android:id="@+id/unitNul"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="00:00"/&gt;
  
          &lt;CustomRow&gt;&lt;\CustomRow&gt; //this is where I imagined I would have to put my    custom element
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/TableRow&gt;   
  </code></pre>
  
  <p>I would then proceed to put in appointments based on their time of the day in the correct rows (via. switch logic)</p>
  
  <p>My questions are: 
  How do I add a Custom element to each tablerow?
  Is this the best way to do so?</p>
  
  <p>side note:
  I have tried to make a custom view element, but this seems to be a bit too dificult for me to handle. (this is also an option if you know a good guide explaining this)
  I have already tried: <a href="http://developer.android.com/guide/topics/ui/custom-components.html" rel="nofollow">http://developer.android.com/guide/topics/ui/custom-components.html</a>    </p>