-
Notifications
You must be signed in to change notification settings - Fork 330
Home
Olmo Gallegos edited this page May 28, 2016
·
3 revisions
Welcome to the PdfViewPager wiki!
For those of you migrating from 0.2.x to 0.3.0, consider the following:
- PDFPagerAdapterZoom is now called PDFPagerAdapter. It becomes the official adapter class because having the default adapter without zoom is less usable. Just rename your instances of this class.
- PDFPagerAdapterIVZoom is now called LegacyPDFPagerAdapter. It has been deprecated, but you can still use it.
- You have to pass an extra parameter when instantiating PDFPagerAdapter, as shown in the example below
- The old PDFPagerAdapter is now called BasePDFPagerAdapter. If you still want to use this adapter without zooming capability, you can set it to your PDFViewPager objects.
- The sample project has been updated with all code changes, so you can go to the use case you need (local pdf, remote pdf, assets, sdcard...) and copy the sample code.
adapter = new PDFPagerAdapter(this, "sample.pdf", pdfViewPager.getOffscreenPageLimit());
I encourage you to migrate your apps to 0.3.0. Memory management is now better.
Have a happy migration!