Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhotoViewer在哪??自己写个demo依赖下能不能找到PhotoViewer #1

Open
yongzhenzou opened this issue Oct 27, 2021 · 1 comment

Comments

@yongzhenzou
Copy link

PhotoViewer viewer = PhotoViewer.getDefault(context);
viewer.apply(TransferConfig.build()
.setImageLoader(UniversalImageLoader.with(getApplicationContext()))
.setSourceUrlList(SourceConfig.getMixingSourceGroup())
.create()
).show());

// 离开页面不要忘记调用
viewer.destroy();

@yongzhenzou yongzhenzou changed the title PhotoViewer在哪 PhotoViewer在哪??自己写个demo依赖下能不能找到PhotoViewer Oct 27, 2021
@ITxiaoguang
Copy link
Owner

文档更新咯这样使用,下面这样使用。
目前版本不是很稳定呢,稳定版请看 https://github.com/Hitomis/transferee

// 添加所有 module [包括 photoviewer、glideimageloader、picassoimageloader、universalimageloader]
implementation 'com.github.ITxiaoguang:PhotoViewer:1.0.0'

// 单独添加核心 module photoviewer, 之后至少还需要添加以下三种图片加载器中的一种
implementation 'com.github.ITxiaoguang.PhotoViewer:photoviewer:1.0.0'

// 添加 Glide 图片加载器 三选一
implementation 'com.github.ITxiaoguang.PhotoViewer:glideimageloader:1.0.0'

// 添加 Picasso 图片加载器 三选一
implementation 'com.github.ITxiaoguang.PhotoViewer:picassoimageloader:1.0.0'

// 添加 Universal 图片加载器 三选一
implementation 'com.github.ITxiaoguang.PhotoViewer:universalimageloader:1.0.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants