Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHubZJY committed Feb 10, 2022
1 parent 3fa99c1 commit 077d085
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ pdfView.loadPdf("http://.....xx.pdf");
```java
pdfView.loadPdf("file:///android_asset/test.pdf");
```
 
自定义预览操作条:
首先继承于 `AbsControllerBar`, 重写 `getView` 方法返回自定义的视图
```
public class CustomControllerBar extends AbsControllerBar {
public View getView() {
//...
}
}
```
通过 `setPDFController` 设置自定义的Controller即可
```java
CustomControllerBar controllerBar = new CustomControllerBar(this);
pdfView.setPDFController(controllerBar);
```

### 2.以页面方式调起
以页面的形式,自带了默认的顶部标题栏,适配Android 5.0以下,会自动下载并调用浏览器打开
Expand Down

0 comments on commit 077d085

Please sign in to comment.