TableLayout related issue
<p>I want to show an array of strings into table layout. Having following code.I am able to get the data into log file but table layout i am seeing nothing.</p>

<pre><code>TableLayout tl=(TableLayout)findViewById(R.id.maintable);
     for(int current=0;current&lt;cursor1.getCount();current++)
     {
         //create a table row
     TableRow tr=new TableRow(this);
     tr.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
     // create a text view for start time
     TextView sTime= new TextView(this);
     sTime.setText(values[current]);
     sTime.setTextColor(Color.YELLOW);
     Log.i("Data Check", values[current]);
     sTime.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
     tr.addView(sTime);
     //add the table row into TableLayout
     tl.addView(tr, new TableLayout.LayoutParams(
             LayoutParams.FILL_PARENT,
             LayoutParams.WRAP_CONTENT));

     }
</code></pre>
