title: create multiple runtime textview in android
body: <p>I have code in eclipse for create multiple <code>TextView</code> in multiple rows but when run the application items don't show, please help me how to fix it.</p>
  
  <p>This is my code:</p>
  
  <pre><code>public void createInputBoxes(Activity gameplay, int colnums, int rownums, TableLayout.LayoutParams lparams, TableLayout puzzlelayout) {
  
      TextView[][] puzcels = new TextView[colnums][];
      puzzlelayout.removeAllViews();
  
      for(int c=0; c&lt;colnums; c++)
      {
          puzcels[c]=new TextView[rownums];
          TableRow tr = new TableRow(gameplay);
          tr.setLayoutParams(lparams);
  
          for(int r=0; r&lt;rownums; r++)
          {
              puzcels[c][r] = new TextView(gameplay);
              puzcels[c][r].setLayoutParams( lparams);
              puzcels[c][r].setId(tvid);
              puzcels[c][r].setText("?");
              tvid++;
              puzcels[c][r].setBackgroundColor(0xffffb90f);
              tr.addView(puzcels[c][r]);
  
          }
          puzzlelayout.addView(tr,lparams);
      }
  }
  </code></pre>