不错的集图片选择、预览、拖拽排序于一身的开源项目

原文地址:https://github.com/bingoogolapple/BGAPhotoPicker-Android?utm_source=tuicool&utm_medium=referral

不带选择器图片预览:
参数:上下文、拍照临时存储地址、图片集合、点击位置

startActivity(BGAPhotoPreviewActivity.newIntent(context, newFile(Environment.getExternalStorageDirectory().getAbsoluteFile() + System.currentTimeMillis() +".png"),list,position2));

图片选择:
先给定一个拍照存储地址:


File takePhotoDir =newFile(Environment.getExternalStorageDirectory(),"BGAPhotoPickerTakePhoto");startActivityForResult(BGAPhotoPickerActivity.newIntent(this,takePhotoDir,maxNum_photo, null, false),REQUEST_CODE_CHOOSE_PHOTO);

带选择器图片预览:

startActivityForResult(BGAPhotoPickerPreviewActivity.newIntent(this,mPhotosSnpl.getMaxItemCount(),models,models,position, false),REQUEST_CODE_PHOTO_PREVIEW);

你可能感兴趣的:(不错的集图片选择、预览、拖拽排序于一身的开源项目)