ItemRemovedListener added for SwipePlaceHolderView
SwipePlaceHolderView
will now accept ItemRemovedListener
. It will listen to the itemView remove events. onItemRemoved
method will be called with the count of the current items in the view list after the view removal.
mSwipePlaceHolderView.addItemRemoveListener(new ItemRemovedListener() {
@Override
public void onItemRemoved(int count) {
//do something when the count changes to some specific value.
//For Example: Call server to fetch more data when count is zero
}
});