how to delete table row in table layout in android

前端 未结 8 2149
耶瑟儿~
耶瑟儿~ 2021-02-13 01:04
void init()
{
   intcolumnwidth1 = int_scr_wd*55;
   intcolumnwidth1 = intcolumnwidth1/100;
   for (int i = 0; i < strarr.length-1; i++)
   {
      strinarr = fun1.sp         


        
8条回答
  •  一生所求
    2021-02-13 01:46

    Use this:

    new Handler().postDelayed(new Runnable() {
          public void run() {
             TableRow row = (TableRow)table.getChildAt(i);
             table.removeView(row);
          }
     }, 100);
    

    Where i - is row position, wich you want to delete.

提交回复
热议问题