简体   繁体   中英

android How to select multiple images from gallery and preview on gridview/framelayout

I want to open the gallery and select multiple image. Then the selected image are preview in a gridview or framelayout. how do you select multiple photos from gallery and save that in imageview array. and everytime you choose again it stack.

I tried

Intent i = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);

but it just select one image

anybody know how to do this?

Refer this github project, you will find it useful and would satisfy your requirement.

https://github.com/derosa/MultiImageChooser

Also this may be useful :

https://github.com/luminousman/MultipleImagePick

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM