/android-image-weixin-preview

仿微信图片预览的封装,简单易用 Imitate WeChat picture preview and it is easy to use

Primary LanguageJava

android-image-weixin-preview

仿微信图片预览的封装,继承AlertDialog,简单易用

Imitate WeChat picture preview, inherit AlertDialog, and it is easy to use

效果如图:

The example of picture:

avatar

安装:

Install:

导入除开README.md的上面的文件到项目中即可

Import the above files except README.md into the project

使用方法:

How to use:

法一:

one:

new CustomPreview(QualificationActivity.this, imgArr).show();

imgArr是图片链接集合List< String >,效果是渐进渐出

imgArr is List< String >,the effect is fade in or out

法二:

two:

new CustomPreview(QualificationActivity.this, imgArr, simpleDraweeViewList).show();

simpleDraweeViewList是图片对象集合List< SimpleDraweeView >,效果是仿微信从图片位置放大效果和缩小到恢复位置

simpleDraweeViewList is List< SimpleDraweeView >,the effect is of imitating WeChat preview zoom in or out from the initial postion

其他方法:

Other methods:

设置图片描述

Set picture title

setTitleList(List<String> titleList)

设置当前第几个图片

Set picture current position

setCurrentPosition(Integer currentPosition)

欢迎打赏

一分钱也是源源不断技术的推动力

Chinese friends welcome to reward, and foreign friends welcome to give me a star

图片加载中..