Closed geekytechie closed 4 years ago
Try this instead
@Override
public void onCardAppeared(View view, int position) {
resetMap(yourList.get(position));
}
And
@Override
public void onCardSwiped(Direction direction) {
if (layoutManager.getTopPosition() == (yourList.size())) {
adapter.notifyDataSetChanged();
}
}
@geekytechie
We should implement reloading in onCardSwiped
not in onCardDisappeared
as @bashizip mentioned.
On reloading the CardStackView at the last position, the card get stucks in the air. Attached is the screenshot.