AndroidPdfViewer
AndroidPdfViewer copied to clipboard
Single page scrolling
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.
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
And of course thank you for contribution
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.
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
how can show curl or flip animation on page change or on page scroll ?
how to solve this problem? please guide us with code snippet.