yuyakaido / CardStackView

📱Tinder like swipeable card view for Android
Apache License 2.0
2.34k stars 443 forks source link

One card remains even though list is empty #344

Open richanshah opened 3 years ago

richanshah commented 3 years ago

as my card stack recycler view but when I don't have an item left in the list, it just shows an empty view holder (which is a material card in my case). I was wondering how to remove this last empty card so I can show an image or something else to let the user know that there are no more cards available. I've seen that this is doable, I just don't know how.

shobhik commented 2 years ago

@yuyakaido I noticed this is sometimes also happening when the source list isn't empty, randomly when there's either 1 or 11 items remaining. I tried going through source code but couldn't spot anything. Any ideas on how to either solve this, or to detect when the CardStackView isn't displaying any cards? My current workaround is triggering a full refresh but that isn't ideal...