how to delete table row in table layout in android

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

    The other solutions require your rows to have unique ids.

    If they don't have unique ids then how about using:

    tl.removeView(rowIndex);
    

    In any case, you should try learning how to use SimpleCursorAdapter or CursorAdapter because they are specifically designed for displaying the content of a database query in a list. See Binding to Data with AdapterView.

提交回复
热议问题