@@ -10,22 +10,14 @@ Library for displaying PDF documents on Android, with `animations`, `gestures`,
1010It is based on [ PdfiumAndroid] ( https://github.com/barteksc/PdfiumAndroid ) for decoding PDF files. Works on API 11 (Android 3.0) and higher.
1111Licensed under Apache License 2.0.
1212
13- ## What's new in 3.0.0-beta.1?
14- * Add support for documents with different page sizes
15- * Add support for links
16- * Add support for defining page fit policy (fit width, height or both)
17- * Update sample.pdf to contain different page sizes
18-
19- 3.0.0-beta.2 fixes rendering with maximum zoom, improves fit policies and updates PdfiumAndroid to 1.8.1
20-
21- 3.0.0-beta.3 fixes bug preventing ` OnErrorListener ` from being called
22-
23- 3.0.0-beta.4 fixes not loaded pages when using animated ` PDFView#jumpTo() ` and NPE in ` canScrollVertically() ` and ` canScrollHorizontally() `
24-
25- 3.0.0-beta.5 fixes:
26- * Issue with ` Configurator#pages() ` from #486
27- * ` IllegalStateException ` from #464
28- * Not detecting links reported in #447
13+ ## What's new in 3.1.0-beta.1?
14+ * Merge pull request #557 for snapping pages (scrolling page by page)
15+ * merge pull request #618 for night mode
16+ * Merge pull request #566 for ` OnLongTapListener `
17+ * Update PdfiumAndroid to 1.9.0, which uses ` c++_shared ` instead of ` gnustl_static `
18+ * Update Gradle Plugin
19+ * Update compile SDK and support library to 26
20+ * Change minimum SDK to 14
2921
3022## Changes in 3.0 API
3123* Replaced ` Contants.PRELOAD_COUNT ` with ` PRELOAD_OFFSET `
@@ -38,7 +30,7 @@ Licensed under Apache License 2.0.
3830
3931Add to _ build.gradle_ :
4032
41- ` compile 'com.github.barteksc:android-pdf-viewer:3.0 .0-beta.5 ' `
33+ ` compile 'com.github.barteksc:android-pdf-viewer:3.1 .0-beta.1 ' `
4234
4335or if you want to use more stable version:
4436
@@ -94,6 +86,7 @@ pdfView.fromAsset(String)
9486 .onRender(onRenderListener) // called after document is rendered for the first time
9587 // called on single tap, return true if handled, false to toggle scroll handle visibility
9688 .onTap(onTapListener)
89+ .onLongPress(onLongPressListener)
9790 .enableAnnotationRendering(false ) // render annotations (such as comments, colors or forms)
9891 .password(null )
9992 .scrollHandle(null )
@@ -105,6 +98,7 @@ pdfView.fromAsset(String)
10598 .pageFitPolicy(FitPolicy . WIDTH )
10699 .pageSnap(true ) // snap pages to screen boundaries
107100 .pageFling(false ) // make a fling change only a single page like ViewPager
101+ .nightMode(false ) // toggle night mode
108102 .load();
109103```
110104
0 commit comments