-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Please add a feature that can keep ratio in free mode. (with kotlin code) #405
Comments
Currently OverlayView#mCurrentTouchCornerIndex and OverlayView#updateCropViewRect are private members. I have to using reflection and intercept touch event. If updateCropViewRect can be overrided, will be very nice. My hack: import android.os.Bundle class CropActivity : UCropActivity() {
} |
@1001101 Hello! Thank you for your code and contribution! I guess we can implement your feature in next release. I think better to do this like FREESTYLE_CROP_MODE_WITH_ASPECT_RATIO |
In my opinion, most fields should be protected, then we can do much. For example, custom crop menu behavior: Another problems: |
Guys, its been 2 years already and this issue has not been resolved. Can we have a roadmap for when this will be released? This is a really important feature for the usability of the library for some of us. It is powerful to allow free style but we are tied down by this issue. When can we expect this to be released? |
Thanks @ghost you save my day <3 |
I looked the source, but there is no feature can keep ratio with setFreeStyleCropEnabled enabled.
So I wrote some code to do this, but it only works in Debug mode, I can't extend or override, no callbacks or protect method can let me hook it.
My Kotlin code:
The text was updated successfully, but these errors were encountered: