下面的代码不显示:
TableRow lay = new TableRow(layIndex.getContext());
lay.setLayoutParams(lpRow);
//layIndex.addView(lay, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
下面的代码显示:
TableRow lay = new TableRow(layIndex.getContext());
//lay.setLayoutParams(lpRow);
layIndex.addView(lay, new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT, TableLayout.LayoutParams.WRAP_CONTENT));
TableLayout 中不显示动态添加的tableRow
时间: 2024-10-11 21:48:29