Android RecyclerView ItemTouchHelper revert swipe and restore view holder
问题 Is there a way to revert a swipe action and restore the view holder to its initial position after the swipe is completed and onSwiped is called on the ItemTouchHelper.Callback instance? I got the RecyclerView , ItemTouchHelper and ItemTouchHelper.Callback instances to work together perfectly, I just need to revert the swipe action and not remove the swiped item in some cases. 回答1: After some random poking I found a solution. Call notifyItemChanged on you adapter. This will make the swiped out