Imitation WeChat image selector https://github.com/lovetuzitong/MultiImageSelector Now this open source control has been used in our products, and judging from the current feedback, the effect is still good.
WeChat also implements its own picture selection interface. The system only provides the resource ContentProvider, and the application needs to obtain the resource by matching the Uri. For example, to get all jpg and png images on the machine, you can search like this
Cursor cursor = mContentResolver.query(mImageUri,
new String[]{MediaStore.Images.Media.DATA}, MediaStore.Images.Media.MIME_TYPE + "=? or "
+ MediaStore.Images.Media.MIME_TYPE + "=? or " + MediaStore.Images.Media.MIME_TYPE + "=?",
new String[]{"image/jpg", "image/jpeg", "image/png"},
MediaStore.Images.Media.DATE_MODIFIED);
Imitation WeChat image selector
https://github.com/lovetuzitong/MultiImageSelector
Now this open source control has been used in our products, and judging from the current feedback, the effect is still good.
Photo picker imitating WeChat
https://github.com/donglua/PhotoPicker
WeChat also implements its own picture selection interface. The system only provides the resource ContentProvider, and the application needs to obtain the resource by matching the Uri. For example, to get all jpg and png images on the machine, you can search like this
Traverse the cursor to get all image paths.