I have created a recycle view, which consists of no of images that can be selected from the camera as well as the gallery, we have added two options to recycleview images that are deleted and crop option. On Delete option click the recycleview item gets remove and recycleview gets update, Now I wish to implement crop functionality on recycleview images and add update them again to the recycleview.
following is working UI design on link https://ibb.co/kxXcnq
Following is crop option click event where i am getting the uri of the image: I have created this in seperate class of image adapter:
holder.cropImageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// Show the removed item label`enter code here`
File file = imagesFiles.get(position);
Uri uri = Uri.parse(file.getAbsolutePath());
Log.d("file name :", file.getAbsolutePath());
}
});