Vangogh

项目地址:LinLshare/Vangogh
简介:A Simple Image Selector for Android, just do the image-selection job.
更多:作者   提 Bug   示例 APK   
标签:
android-image selector-

中文版 A Simple Image Selector for Android, just do the image-selection job. You can do anything with your view and let Vangogh handle the data.

ScreenShot1 ScreenShot2 ScreenShot3 ScreenShot4

Don't do

  1. no permission request
  2. no view or activity
  3. no adapter
  4. no image compress

Do

  1. image filter by name, path, size type and count
  2. select image and deselect image

Usage

  1. Init first
Filter filter = new Filter.Builder().mimType(MimeType.JPEG)
                                    .nameRegex(".*wx_camera.*")
                                    .limitCount(3)
                                    .pathContain("/tencent/MicroMsg/WeiXin")
                                    .build();
Vangogh.create(filter).init(this);
  1. Get all album and image to show
List<Album> alba = Vangogh.albumList();
List<Image> imageList = Vangogh.imageList(album);
  1. Toggle select when Image Item click
Vangogh.getInstance().toggleSelect(album, image);
  1. Get selected image when OK
Map<Album, List<Image>> albumListMap = Vangogh.selectedImageMap();
  1. Clear selection
Vangogh.selectNone();

Fuli

In Sample Project, I provide the extra activity and adapter implementation.

Thanks

  1. darsh2/MultipleImageSelect
  2. zhihu/Matisse
Android 开发经验分享
C 轮融资近 30 亿元理财推荐
Android 开发经验分享
C 轮融资近 30 亿元理财推荐