Skip to content

Commit

Permalink
update subsampling view
Browse files Browse the repository at this point in the history
  • Loading branch information
iielse committed May 6, 2023
1 parent 38ac936 commit 2711ea6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 37 deletions.
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,16 @@ class SimpleTransformer : Transformer {
}
```

## 到此简单的集成已经完毕.
到此简单的集成已经完毕.

---

## 进阶使用.

组合实现以下3个方法.可以追加自定义的展示和功能)
实现以下3个方法.可以追加自定义的展示和功能)

* // 自定义'每一页'上的UI.比如可显示图片的更多信息.提供存储分享等更多功能等
* `builder.setVHCustomizer(MyCustomViewHolderUI())`
* // 自定义'覆盖(最上)层'上的UI.比如添加指示器等
* `builder.setOverlayCustomizer(MyCustomIndicatorUI())`
* // 监听viewer的各种状态变化.包括页面的切换(显示当前在第几页).;过渡动画的执行状态;维护video的播放状态等
* `builder.setViewerCallback(MyViewerStateChangedListener())`
* 自定义'每一页'上的UI.比如可显示图片的更多信息.提供存储分享等更多功能等 `builder.setVHCustomizer(MyCustomViewHolderUI())`
* 自定义'覆盖(最上)层'上的UI.比如添加指示器等 `builder.setOverlayCustomizer(MyCustomIndicatorUI())`
* 监听viewer的各种状态变化.包括页面的切换(显示当前在第几页).;过渡动画的执行状态;维护video的播放状态等 `builder.setViewerCallback(MyViewerStateChangedListener())`

```
// 一般监听翻页onPageSelected可以控制 video播放的状态
Expand Down Expand Up @@ -196,8 +192,4 @@ demo可运行. demo可运行. demo可运行 .demo代码已重构.

### Thanks

#### 如果您觉得我的开源库帮你节省了大量的开发时间,可扫描下方的二维码随意打赏。你的鼓励是我维护项目最大的动力

<img src="https://raw.githubusercontent.com/iielse/res/master/q/ali_q.png" alt="支付宝捐赠" width="320"><img src="https://raw.githubusercontent.com/iielse/res/master/q/wx_q.png" alt="微信捐赠" width="320">


如果您觉得我的开源库帮你节省了大量的开发时间,可扫描下方的二维码随意打赏。你的鼓励是我维护项目最大的动力
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
implementation 'com.github.bumptech.glide:glide:4.13.1'
kapt 'com.github.bumptech.glide:compiler:4.13.1'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
implementation 'com.google.android.exoplayer:exoplayer:2.15.0'

implementation project(':imageviewer')
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ ext {
buildToolsVersion= "30.0.3"
minSdkVersion = 21
targetSdkVersion = 30
versionCode = 228
versionName = "2.1.22"
versionCode = 229
versionName = "2.1.23"
}
19 changes: 0 additions & 19 deletions faq.md

This file was deleted.

2 changes: 1 addition & 1 deletion imageviewer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.exoplayer:exoplayer:2.15.0'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0'
}

task androidSourcesJar(type: Jar) {
Expand Down

0 comments on commit 2711ea6

Please sign in to comment.