How Cancel Photo Rotated
hexianqiao3755 opened this issue · 4 comments
hexianqiao3755 commented
How to hide the bottom view, so that the photos can not be rotated.
shliama commented
Hello @hexianqiao3755
Currently you can hide bottom view withUCrop.Options.setHideBottomControls(true)
method.
However it won't disable rotation.
I've modified sources and in the next library update (soon) you will be able to set desired gestures via
UCrop.Options.setAllowedGestures(UCropActivity.SCALE, UCropActivity.SCALE, UCropActivity.SCALE);
- you need to change only first parameter, because there are no "tabs".
shliama commented
Please check the latest uCrop version
Now you can choose between:
Lightweight general solution
compile 'com.yalantis:ucrop:2.2.0'
Get power of the native code to preserve image quality (+ about 1.5 MB to an apk size)
compile 'com.yalantis:ucrop:2.2.0-native'
hexianqiao3755 commented
Legementarion commented
Sorry but ucrop library doesnt support FloatingActionButton. I hope you solved your problem