- Update kotlin version to v1.3.20.
- Fix issue with offFrame judgement. (#20)
- Fix issue where cropme_background_alpha is not working. (#17)
- Fix issue with using deprecated method.
- Update dependencies.
- Update target SDK version to 30.
- Simplify demo app.
- Add sample code to use picture taken by camera.
- Add addOnCropListener/removeOnCropListener.
- Do nothing when the image is off the frame when calling crop().
- Simplify animators.
- Add test code.
- Set up CI environment.
- Call requestLayout once a frame size is settled. This will set a image properly when a image is set before CropLayout is laid out.
- Refactor
HorizontalAnimatorImpl.kt
、VerticalAnimatorImpl.kt
andScaleAnimatorImpl
. - Add more comments to classes.
- Migrate to AndroidX. After this release, your app have to be migrated to AndroidX.
- Support Circle frame by default. You can use a circle frame by setting
app:cropme_overlay_shape="circle"
. - Add new attributes
cropme_overlay_shape
、cropme_custom_shape_layout
. - Add samples for Rectangle / Circle / Custom frame. Check out the new app module.
- Upgrade compileSdkVersion and targetSdkVersion to 28.
- Require Kotlin v1.3.50.
- Initial Release