ListView does not refresh dynamically and causes Error
问题 I am unable to remove an object in a ListView. I have been trying to remove an object from an adapter, and then call onDataSetChanged(); but it does not seem to ever remove the object from the screen. I can successfully remove the object from the database, but the object persists on screen regardless. I believe that because the view does not refresh properly, it allows me to continue to swipe-to-dismiss the items in the list and eventually leads to an IndexOutOfBoundsException. Does anyone