作者:岁月掌心_447 | 来源:互联网 | 2023-09-23 19:05
Helloihavesomethinglikethis你好,我有这样的事情TableLayouttblGridnewTableLayout(getBaseContext())
Hello i have something like this
你好,我有这样的事情
TableLayout tblGrid = new TableLayout(getBaseContext());
for(int i = 0; i <10; i++) {
EditText edtArticulo = new EditText(getBaseContext());
EditText edtCantidad = new EditText(getBaseContext());
EditText edtPrecio = new EditText(getBaseContext());
EditText edtSubtotal = new EditText(getBaseContext());
CheckBox chbSeleccion = new CheckBox(getBaseContext());
TableRow tbrRenglon = = new TableRow(getBaseContext());
tbrRenglon.addView(chbSeleccion, 0);
tbrRenglon.addView(edtArticulo, 1);
tbrRenglon.addView(edtCantidad, 2);
tbrRenglon.addView(edtPrecio, 3);
tbrRenglon.addView(edtSubtotal, 4);
}
tblGrid.addView(tbrRenglon);
my problem is i can´t find the selected checkbox in the group of tablerows
我的问题是我无法在tablerows组中找到所选的复选框
i need some help please
我需要一些帮助
1 个解决方案