이렇게 수정하니깐 됩니다.
TableLayout tl = (TableLayout)findViewById(R.id.table);
/* Create a new row to be added. */
TableRow tr = new TableRow(this);
tr.setLayoutParams(new LayoutParams(
LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
/* Create a TextView to be the row-content. */
LinearLayout ll = new LinearLayout(tr.getContext());
ll.setLayoutParams(new TableRow.LayoutParams(
LayoutParams.MATCH_PARENT,
LayoutParams.WRAP_CONTENT));
ll.setOrientation(LinearLayout.VERTICAL);
ll.setBackgroundDrawable(shape);
TextView data = new TextView(this);
data.setText("asd");
data.setBackgroundColor(Color.parseColor("#99cccc"));
TextView data1 = new TextView(this);
data1.setText("asd1");
TextView data2 = new TextView(this);
data2.setText("asd2");
/* Add TextView to row. */
ll.addView(data);
ll.addView(data1);
ll.addView(data2);
tr.addView(ll);
/* Add row to TableLayout. */
tl.addView(tr,new TableLayout.LayoutParams(
LayoutParams.MATCH_PARENT,
LayoutParams.WRAP_CONTENT));