How can I add a timer with every item of the listview? I want the row to disappear after two seconds. The list contains only strings
I currently have a handler in my adapter with handler.postDelayed(new UpdateTimerTask(), 2000);
inside the getView method.
This task implements a Runnable that should remove an item from the list and call notifyDataSetChanged().
But I cannot call remove with a position because elements are constantly added at the top in my case. The strings could also be the same and hence i cannot remove by name.
Any ideas??