Android layout 再添加一行
我是安卓开发者。单击加号按钮时,我还需要一行 对于Ex(编辑联系人,单击加号意味着再添加一行,减号意味着删除该行。请给我xml布局和示例编码。)为按钮创建onClickListener()。然后通过Android layout 再添加一行,android-layout,Android Layout,我是安卓开发者。单击加号按钮时,我还需要一行 对于Ex(编辑联系人,单击加号意味着再添加一行,减号意味着删除该行。请给我xml布局和示例编码。)为按钮创建onClickListener()。然后通过 tblLayout = (TableLayout)findViewById(R.id.tableLayout); 然后使用 TableRow = new TableRow(this); //Do something with this row row.setText("..."); //
tblLayout = (TableLayout)findViewById(R.id.tableLayout);
然后使用
TableRow = new TableRow(this);
//Do something with this row
row.setText("...");
//add the row to the tblLayout
tblLayout.addView(row);