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.
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.
Source: https://ru.stackoverflow.com/questions/431923/
All Articles