[BUG] - setOnCropImageCompleteListener does not work
See original GitHub issue- Lib Version 3.3.6
Describe the bug setOnCropImageCompleteListener does not work Lambda function never gets called.
To Reproduce use the CropImageView, then: create a Lambda function:
binding.cropImageView.setOnCropImageCompleteListener{ view, result ->
Log.d("imageComplete", "does this even get called")
}
notice that it never gets called when moving and scaling the crop region.
Expected behavior Lambda should get called when releasing the cropping rectangle so that the selected region can be automatically refreshed into i.E. a Preview Drawable
Media
Smartphone (please complete the following information):
- Device: Xiaomi Mix 2S and Pixel 4 Emulator
- OS: Android 10 MIUI 12.5 and Android 10 with Play Services
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Implementing the Android Image Cropper errors
I found some errors when implementing and doubts where to put the code. I have added this code in the main activity in...
Read more >QponyDev / Android-Image-Cropper Download - JitPack
By default nothing will happen and the view will be restored empty (if cropping image loaded using bitmap). Added config SaveBitmapToInstanceState to enable ......
Read more >com.theartofdev.edmodo.cropper.CropImageView java code ...
Sets a Drawable as the content of the CropImageView. setOnSetImageUriCompleteListener. Set the callback to be invoked when image async loading ( # ...
Read more >Android Image Cropper - CD2H gitForager
For a working implementation, please have a look at the Sample Project ... optional (needed if default theme has no action bar) -->....
Read more >Online Image Picker: Picasso download With Image. Android ...
Let's open a new Android project, called Picasso Demo. In Android programming, build gradle is always our first task, not UI. Let's add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah I think its a misunderstanding. sorry. I’ll come back when I did more debugging.
… I just wanted to add that the zoom gets applied when dragging the cropping rectangle to an edge - maybe this helps finding the root cause 😉