No Textview occurs in TableLayout
<p>No Textview occurs in this TableLayout.  I don't know why.</p>

<p>I want to make the entries manually. </p>

<p>Another question, how can I add a horizontal line?</p>

<p>Code:</p>

<pre><code>super.onCreate(savedInstanceState);
        setContentView(R.layout.overview);
        loadData();
        TableLayout tl = (TableLayout)findViewById(R.id.tl);
        TableRow tr = new TableRow(this);
        TextView tv = new TextView(this);
        TextView tv2 = new TextView(this);
        //tv.se
        tv.setGravity(Gravity.LEFT);
        tv2.setGravity(Gravity.RIGHT);
        tv.setText("Test");
        tv2.setText("Test ");
        tv.setLayoutParams(new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1f));
        tv2.setLayoutParams(new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1f));
        //tv.setTextSize(50);
        //tv2.setTextSize(50);
        tr.addView(tv);
        tr.addView(tv2);
        tl.addView(tr);
        setContentView(tl);
</code></pre>

<p>Layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TableLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:id="@+id/tl"&gt;
&lt;/TableLayout&gt;
</code></pre>
