首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

TableLayout失去TableRow

2012-09-10 
TableLayout得到TableRowfor(int i 0, j table.getChildCount() i j i++){?? ? // then, you can

TableLayout得到TableRow

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);?
? ? }?
}?

热点排行