@@ -10,22 +10,14 @@ Library for displaying PDF documents on Android, with `animations`, `gestures`,
10
10
It is based on [ PdfiumAndroid] ( https://github.com/barteksc/PdfiumAndroid ) for decoding PDF files. Works on API 11 (Android 3.0) and higher.
11
11
Licensed under Apache License 2.0.
12
12
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
29
21
30
22
## Changes in 3.0 API
31
23
* Replaced ` Contants.PRELOAD_COUNT ` with ` PRELOAD_OFFSET `
@@ -38,7 +30,7 @@ Licensed under Apache License 2.0.
38
30
39
31
Add to _ build.gradle_ :
40
32
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 ' `
42
34
43
35
or if you want to use more stable version:
44
36
@@ -94,6 +86,7 @@ pdfView.fromAsset(String)
94
86
.onRender(onRenderListener) // called after document is rendered for the first time
95
87
// called on single tap, return true if handled, false to toggle scroll handle visibility
96
88
.onTap(onTapListener)
89
+ .onLongPress(onLongPressListener)
97
90
.enableAnnotationRendering(false ) // render annotations (such as comments, colors or forms)
98
91
.password(null )
99
92
.scrollHandle(null )
@@ -105,6 +98,7 @@ pdfView.fromAsset(String)
105
98
.pageFitPolicy(FitPolicy . WIDTH )
106
99
.pageSnap(true ) // snap pages to screen boundaries
107
100
.pageFling(false ) // make a fling change only a single page like ViewPager
101
+ .nightMode(false ) // toggle night mode
108
102
.load();
109
103
```
110
104
0 commit comments