【发布时间】:2019-01-07 07:32:36
【问题描述】:
选择代码多张图片
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);
所以我的问题是如何选择 specific Height And Width 或 specific 大小,例如 是那可能吗?其他图像禁用选择
【问题讨论】:
-
您需要知道图像的路径并使用
BitmapFactory.decodeFile()。见这里:developer.android.com/topic/performance/graphics/… -
@LQGioan 先生,我知道如何减小图像的大小.. 你可能需要再次阅读我的问题
-
您需要使用
IMG_CONFIG。检查此github.com/alhazmy13/MediaPicker/blob/master/app/src/main/java/… 并使用该库。如果您不想使用整个库并检查其代码并根据您的要求使用。 -
@Ninja 感谢您的评论让我检查一下
标签: java android android-intent