how to delete table row in table layout in android

前端 未结 8 2154
耶瑟儿~
耶瑟儿~ 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:48

    You need to know the textview to be deleted. The TextView can be identified by setting a unique id using setId() or using a unique tag using setTag().

    It can then be identified by TextView tv = (TextView) tr1.findViewByTag(unique tag);

    Use removeView to delete the View.

提交回复
热议问题