TableView icon indicating copy to clipboard operation
TableView copied to clipboard

TableViewListener , onCellLongPressed method provide wrong rowindex after delete a row

Open MikeSmith0504 opened this issue 5 years ago • 1 comments

I delete row in onCellLongPressed method ,using the method parametor rowindex,code as below,

  tableview.setTableViewListener(new SimpleTableViewListener(tableview,null,(o, colindex, rowindex) ->{
               comadapter.removeRow(rowindex);      //delete a row 
   }));

the first row deleted successfully,then delete second row ,but the rowindex still the old one , this is not desired. I read all the issues list ,found save problem as #230 . is there anyone found solution? is it a bug or i made some mistake?

HOW CAN I DO?

MikeSmith0504 avatar May 20 '20 03:05 MikeSmith0504

I use 0.8.8 version 。 I also made an sample app, seems no way to upload

MikeSmith0504 avatar May 20 '20 08:05 MikeSmith0504