美文网首页android
Android快速开发架构PlanA(七),隐藏技能:Photo

Android快速开发架构PlanA(七),隐藏技能:Photo

作者: Alt丶 | 来源:发表于2018-07-16 16:40 被阅读206次

Android快速开发架构PlanA,一周一个APP,持续维护中!
Android快速开发架构PlanA(一),船新版本的BaseActivity
Android快速开发架构PlanA(二),简单粗暴的路由管理PRouter
Android快速开发架构PlanA(三),你一定会用上的工具类
Android快速开发架构PlanA(四),网络请求篇,划重点(必考)
Android快速开发架构PlanA(五),文件上传下载了解一下
Android快速开发架构PlanA(六),抱歉,这些自定义控件真的可以让你为所欲为
Android快速开发架构PlanA(七),隐藏技能:PhotoBrowse图片浏览
Android快速开发架构PlanA(八),手滑搞了个万能适配器CommonAdapter

PhotoBrowse

PlanA已经集成PhotoBrowse;PhotoBrowse即图片浏览库,单张/多张网络图片,单张/多张资源图片,基于PhotoView,Glide开源框架整合,支持缩放,留个❤❤吧。。

preview.png

1.单张网络图片

ImageBrowseIntent.showUrlImageBrowse(mContext,"...");

2.多张网络图片

ArrayList<String> imageList = new ArrayList<>();
imageList.add("...");
...
ImageBrowseIntent.showUrlImageBrowse(mContext,imageList,position);

3.单张资源图片

ImageBrowseIntent.showResIdImageBrowse(mContext,R.mipmap.xxx);

4.多张资源图片

ArrayList<Integer> imageResList = new ArrayList<>();
imageResList.add(R.mipmap.xxx);
...
ImageBrowseIntent.showResIdImageBrowse(mContext,imageResList,position);

PlanA已经集成此图片浏览框架,直接调用即可。

PhotoBrowse地址:https://github.com/Beseting/PhotoBrowse

相关文章

网友评论

    本文标题:Android快速开发架构PlanA(七),隐藏技能:Photo

    本文链接:https://www.haomeiwen.com/subject/jahbpftx.html