for(int i = 0, j < table.getChildCount(); i < j; i++){
// then, you can remove the the row you want...
// for instance...
TableRow row = getChildAt(i);
if( something you want to check ) {
removeViewAt(i);
// or...
removeView(row);
}
}
TableLayout得到TableRow
最新推荐文章于 2021-02-17 06:18:50 发布
本文介绍了一种在Android应用中通过遍历Table布局并根据条件移除特定TableRow的方法。使用此方法可以根据需求灵活地更新Table布局的内容。
295

被折叠的 条评论
为什么被折叠?



