Doesn't show created Dynamic Layout
<p>I am creating dynamic table layout using below code. but when I use LayoutParameters in TableRow it does't show me any the textView Which I add in to Tableraw.</p>

<p>Here is my code.</p>

<pre><code>mContext = getApplicationContext();
        TableRow tableRow = new TableRow(mContext);
        LinearLayout.LayoutParams params = new LayoutParams(
                android.widget.LinearLayout.LayoutParams.WRAP_CONTENT,
                android.widget.LinearLayout.LayoutParams.WRAP_CONTENT);
        params.setMargins(1, 1, 1, 1);
        rowid = 0;
        tableRow.setId(rowid);
        ColNo = 26;

        LinearLayout mainLayout = new LinearLayout(this);

        TextView txtBox = new TextView(this);

        txtBox.setTextColor(Color.BLACK);
        txtBox.setHeight(25);
        txtBox.setPadding(3, 3, 3, 3);
        txtBox.setId((rowid));
        txtBox.setText("DATA");
        txtBox.setOnClickListener(this);

        mainLayout.addView(txtBox);
        tableRow.addView(mainLayout, params);

        table.addView(tableRow);
</code></pre>

<p>There is something wrong with above code any help is appreciated.</p>

<p>Thank You.</p>
