可以多选的图片选择Android库:MultiImagePicker
jopen
9年前
可以多选的图片选择Android库:MultiImagePicker,可以拍摄新的图片。
运行效果:
使用说明:
依赖
compile 'net.yazeed44.imagepicker:imagepicker:1.0.0'
如果jcenter有什么问题(the library can't be resolved),添加如下代码到build.gradle 。
repositories { maven { url 'https://dl.bintray.com/yazeed44/maven' } }
开始使用
private void pickImages(){ //You can change many settings in builder like limit , Pick mode and colors new Picker.Builder(getBaseContext(),new MyPickListener()) .build() .startActivity(); }
private class MyPickListener implements PickListener { @Override public void onPickedSuccessfully(final ArrayList<ImageEntry> images) { doSomethingWithImages(images); } @Override public void onCancel(){ //User cancled the pick activity } }