Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.89k stars 2.16k forks source link

How Cancel Photo Rotated #186

Closed hexianqiao3755 closed 6 years ago

hexianqiao3755 commented 8 years ago

How to hide the bottom view, so that the photos can not be rotated.

shliama commented 8 years ago

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 8 years ago

Please check the latest uCrop version :octocat: 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 8 years ago

hi @shliama I'm trying to use your new version, solved rotate problem. but, my app used FloatingActionButton location all appeared error. error log: Binary XML file line #135: Binary XML file line #135: Error inflating class android.support.design.widget.FloatingActionButton. can you try.

Legementarion commented 6 years ago

Sorry but ucrop library doesnt support FloatingActionButton. I hope you solved your problem