仿微信图片预览的封装,继承AlertDialog,简单易用
Imitate WeChat picture preview, inherit AlertDialog, and it is easy to use
The example of picture:
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