How to update ListView when deleting data?

I use Ormlite and the Adapter inherited from BaseAdapter . The function for updating the notifyDataSetChanged() list does not work. It is not convenient to update the activation.

1 answer 1

Most likely you have a variable in the adapter class that stores a list of data. If so, after deleting the data, you need to delete them from the adapter, and then update it by calling notifyDataSetChanged () .

If you are doing something wrong, then add the code to the question. In its current form, it is difficult to say something more definite.