读书人

TableLayout失去TableRow

发布时间: 2012-09-10 11:02:33 作者: rapoo

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

读书人网 >移动开发

热点推荐