hello, everyone,
why can't i use pageSnap() ,autoSpacing() ,pageFling() when i use 3.0.0-beta.5 this version.
thank you for your applies.
I believe the code uses this methods automatically depending on page size.
@1stmetro In my code , IDE reminds me " Cannot resolve method 'pageSnap(boolean)' " ?
@1stmetro does 3.0.0-beta.5 version is the latest version? why can't i find these method in my local source code?
Look forward to your reply
If you look at the source and look at PDFView you will find performPageSnap() its not a method you can use within your own app but you can modify the source if you wish,
What are you trying to do ?
@1stmetro i want to fling pdfview like viewpager.
In your doc,write this :
You can use a combination of the following settings to get scroll and fling behaviour similar to a ViewPager:
.swipeHorizontal(true)
.pageSnap(true)
.autoSpacing(true)
.pageFling(true)
but i can't use this method.why?
I didnt write the document, its not my github but I have worked with it for a while now,
I dont follow what you are trying to do, I can add pageFling(true), etc.. I dont use the spacing as i use my own code rather than having a background color. I didnt like the activity starting in black.
Never tried any of these settings presumed they were default...
These methods are not available in 3.0.0-beta.5 version, they are on master branch waiting for release
Do you know any other way to obtain "pagination" behaviour?
@barteksc when can i get release version? I'm in a hurry to use it
@1stmetro thank you for answering me
If you are really in a hurry, download the proyect from master as it is now and add it as a module to your project.
It can be unstable or have some bugs, but it happens when you work with a beta.
@barteksc I downloaded the project from master as it is now and add it as a module to my project. The "pageFling(true)" behaviour is working great! But when I add this project as a module to my project the application size increases rapidly. So can you plz release a beta version with pageFling behaviour soon.
Steven did you find any solutions i have the same problem
Most helpful comment
@1stmetro i want to fling pdfview like viewpager.
In your doc,write this :
You can use a combination of the following settings to get scroll and fling behaviour similar to a ViewPager:
but i can't use this method.why?