instagram style image picker
- The image returns uri path as a cropped shooting image.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.kimyuhyun:KyhImagePicker:2.3.2'
}
- Insert the code below into the button to run the image picker.
KyhImagePicker.of(getApplicationContext())
.setTitle("Select photo")
.setLimitCount(5)
.setLimitMessage("Up to 5 images can be selected.")
.setNoSelectedMessage("Please select image.")
.setListener((resultCode, data) -> {
if (resultCode == Activity.RESULT_OK) {
ArrayList<UriVO> list = data.getParcelableArrayListExtra("kyh_image_picked_list");
for (int i = 0; i < list.size(); i++) {
imageViewArrayList.get(i).setImageURI(list.get(i).uri);
}
}
}).startActivityForResult();