deck
deck copied to clipboard
Truncated scroll feedback for last item
First item scroll feedback is no problem

But the last item will be truncated

That is for items with size 2. If the size larger, the feedback will not show at all.
Well, I guess understand your problem with cards not showing when size is larger than 2 but I didn't understand what's wrong with your second card in your second print... is that second card different from first and it's truncated? BTW this project is just a view pager extension then you can set all others view pager properties this repository has an implementation example, see in https://github.com/bloderxd/deck/blob/master/app/src/main/java/com/example/bloder/deck/MainActivity.kt
The problem is with the scroll feedback, the red one on the left and right side that appear there. When we reach the end or the beginning of scroll, a scroll feedback will appear.
Oh, understood... probably it's a padding problem... but I will investigate it, thank you to report!
Just a quick fix, we can disable the feedback/overscroll using
android:overScrollMode="never" in XML and
deckPager.overScrollMode = View.OVER_SCROLL_NEVER in kotlin
Good, maybe it's easier disable than fix that but I will investigate it and try to make a fix.