Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Cancel Photo Rotated #186

Closed
hexianqiao3755 opened this issue Sep 2, 2016 · 4 comments
Closed

How Cancel Photo Rotated #186

hexianqiao3755 opened this issue Sep 2, 2016 · 4 comments

Comments

@hexianqiao3755
Copy link

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

@shliama
Copy link
Contributor

shliama commented Sep 8, 2016

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
Copy link
Contributor

shliama commented Sep 8, 2016

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants