【问题标题】:How to load Images from Gallery in Recyclerview in android?如何在 Android 的 Recyclerview 中从图库中加载图像?
【发布时间】:2017-03-17 11:38:19
【问题描述】:

我正在尝试将图片库中的图片加载到我的应用程序文件夹中。我正在使用Recyclerview 通过使用此意图,我可以从图库中选择多个图像,但不知道如何在我的应用程序文件夹中获取图像。请注意,我的应用程序中有不同的文件夹。

 private void OpenFromGallery() {

        Intent intent = new Intent();
        intent.setType("image/*");
        intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
        intent.setAction(Intent.ACTION_GET_CONTENT);
        startActivityForResult(Intent.createChooser(intent, "Select Picture"), 1);`}

【问题讨论】:

    标签: android image gallery


    【解决方案1】:

    希望它对你有用 Click here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-09
      • 1970-01-01
      • 2016-06-13
      • 2020-03-31
      相关资源
      最近更新 更多