deck icon indicating copy to clipboard operation
deck copied to clipboard

Truncated scroll feedback for last item

Open hendrawd opened this issue 7 years ago • 5 comments

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.

hendrawd avatar Dec 22 '17 11:12 hendrawd

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

bloderxd avatar Dec 26 '17 13:12 bloderxd

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.

hendrawd avatar Dec 26 '17 14:12 hendrawd

Oh, understood... probably it's a padding problem... but I will investigate it, thank you to report!

bloderxd avatar Dec 26 '17 16:12 bloderxd

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

hendrawd avatar Dec 28 '17 10:12 hendrawd

Good, maybe it's easier disable than fix that but I will investigate it and try to make a fix.

bloderxd avatar Dec 28 '17 11:12 bloderxd