android如何从图库中选择多个图像并在gridview / framelayout上预览

时间:2014-06-23 04:35:29

标签: android gridview android-intent imageview android-gridview

我想打开图库并选择多个图片。然后,在gridview或framelayout中预览所选图像。如何从库中选择多张照片并将其保存在imageview数组中。每当你再次选择它时,它就会叠加。

我试过

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

但它只选择一个图像

有人知道怎么做吗?

1 个答案:

答案 0 :(得分:0)

参考这个github项目,你会发现它很有用并且能满足你的要求。

https://github.com/derosa/MultiImageChooser

这也许有用:

https://github.com/luminousman/MultipleImagePick