SimpleCropView
SimpleCropView copied to clipboard
How do I cancel crop mode?
I'm not sure there is or not? Due to my UI have a button to toggle crop an image. Firstly I set imageView like this.
imageView.setHandleShowMode(CropImageView.ShowMode.NOT_SHOW); imageView.setGuideShowMode(CropImageView.ShowMode.NOT_SHOW);
Once user starting to crop, I've changed mode to SHOW_ALWAYS
imageView.setGuideShowMode(CropImageView.ShowMode.SHOW_ALWAYS); imageView.setHandleShowMode(CropImageView.ShowMode.SHOW_ALWAYS);
The problem is at this time user can change crop rect by library itself.
IF user ok to crop I will call startCrop
method.
BUT if user cancel, I change showMode back to initial
imageView.setHandleShowMode(CropImageView.ShowMode.NOT_SHOW); imageView.setGuideShowMode(CropImageView.ShowMode.NOT_SHOW);
and problem occurred like this.
hey...@lasersonic... i had same problem like you...you solved your problem...if not then please follow my steps. Step 1 :
imageView.setHandleShowMode(CropImageView.ShowMode.NOT_SHOW);
imageView.setGuideShowMode(CropImageView.ShowMode.NOT_SHOW);
You wrote above both line.but you forget to write this Line.
mCropImageViewEdit.setFrameColor(Color.TRANSPARENT);
mCropImageViewEdit.setOverlayColor(Color.TRANSPARENT);
after adding my above both Line you will get as you want..Means totally hide.Crop mode
when you want to show your cropping tool then you have to write below both lines.
mCropImageViewEdit.setFrameColor(Color.parseColor("#9400D3"));
mCropImageViewEdit.setOverlayColor(Color.parseColor("#AA1C1C1C"))
Note : Use both same color's when hiding & showing.