title: Java Android table not displayed
body: <p>I made the following code :</p>
  
  <pre><code>TableLayout tableLayout = (TableLayout) tmpView.findViewById(R.id.tableLayout);
      TableRow tableRow;
      TableLayout.LayoutParams lp = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);
      for (int i = 0; i &lt; modules.length(); i++) {
          tableRow = new TableRow(this.getActivity());
          tableRow.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));
          TextView title = null;
          TextView grade = null;
          try {
              title = new TextView(this.getActivity());
              title.setText(modules.getJSONObject(i).getString("title"));
              grade = new TextView(this.getActivity());
              grade.setText(modules.getJSONObject(i).getString("grade"));
          } catch (JSONException e) {
              e.printStackTrace();
          }
          tableRow.addView(title);
          tableRow.addView(grade);
          tableLayout.addView(tableRow, lp);
  }
  </code></pre>
  
  <p>But nothing displayed on the screen.<br>
  Do you know why it's not working ?</p>