AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

Single page scrolling

Open starnaus opened this issue 7 years ago • 6 comments

Added "PageViewType" with two available values: SINGLE or CONTINUOUS. Continuous behaves as it did before. Single will swipe one page at a time, centered in the viewer. Zooming will behave like Continuous in order to view the whole page (so it won't keep snapping to leading edge of page), until zoomed to min where it will re-center.

starnaus avatar Jan 15 '18 13:01 starnaus

I have found a problem - when page is not filling width or height of view (depending whether swiping horizontally or vertically) it is aligned to top/left and next page is visible. Sometimes you cannot say which page is active. You can see what I mean on screenshot attached below screenshot_1516040159

barteksc avatar Jan 15 '18 18:01 barteksc

And of course thank you for contribution

barteksc avatar Jan 15 '18 18:01 barteksc

This doesn't work, I get blocked on the first page on portait. And it scroll to the last page on landscape. Because spacingPx is never set so is = 0.

XCarbone avatar Oct 08 '19 11:10 XCarbone

update for those who are struggling with a view page per page, just add to the constructor .swipeHorizontal(true) .pageSnap(true) .autoSpacing(true) .pageFling(true)

And you will get a page per page view, allowing you to swipe to the next page

XCarbone avatar Oct 09 '19 07:10 XCarbone

how can show curl or flip animation on page change or on page scroll ?

sulman15 avatar Sep 12 '20 08:09 sulman15

how to solve this problem? please guide us with code snippet.

shani74 avatar Jun 17 '23 09:06 shani74