You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed bug when changing toolbar text color [\#556](https://github.com/CanHub/Android-Image-Cropper/pull/556) ([Husseinhj](https://github.com/Husseinhj))
8
+
- Resource: Missing Translations added for korean / japanese [\#552](https://github.com/CanHub/Android-Image-Cropper/pull/552) ([hubtwork](https://github.com/hubtwork))
9
+
- Technical: Update to Kotlin 2.0.0 & more. [\#634](https://github.com/CanHub/Android-Image-Cropper/pull/634) ([vanniktech](https://github.com/vanniktech))
**Note:** This way is deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the `Uri` stuff yourself and use `CropImageView`.
28
+
27
29
```kotlin
28
30
classMainActivity : AppCompatActivity() {
29
31
privateval cropImage = registerForActivityResult(CropImageContract()) { result ->
@@ -77,7 +79,7 @@ class MainActivity : AppCompatActivity() {
77
79
78
80
### [2. Using CropView](./sample/src/main/kotlin/com/canhub/cropper/sample/SampleUsingImageView.kt)
79
81
80
-
- Add `CropImageView` into your activity
82
+
**Note:** This is the only way forward, add `CropImageView` into your own activity and do whatever you wish. Checkout the sample for more details.
81
83
82
84
```xml
83
85
<!-- Image Cropper fill the remaining available height -->
@@ -108,6 +110,8 @@ val cropped: Bitmap = cropImageView.getCroppedImage()
108
110
109
111
### [3. Extend to make a custom activity](./sample/src/main/kotlin/com/canhub/cropper/sample/SampleCustomActivity.kt)
110
112
113
+
**Note:** This way is also deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the `Uri` stuff yourself and use `CropImageView`.
114
+
111
115
If you want to extend the `CropImageActivity` please be aware you will need to set up your `CropImageView`
112
116
113
117
- Add `CropImageActivity` into your AndroidManifest.xml
@@ -171,7 +175,7 @@ dependencies {
171
175
172
176
When using Activity Contracts, consult with the sample app on how to use our Activity Contracts since `onActivityResult` got deprecated.
173
177
174
-
Versions after 4.3.3 have changed the APIs quite a bit, it's best to upgrade to each minor version individually, remove deprecated API usages and continue upgrading. So after using 4.3.3, upgrade to 4.4.0, etc.
178
+
Versions after 4.3.3 have changed the APIs quite a bit, it's best to upgrade to each minor version individually, remove deprecated API usages and continue upgrading. So after using 4.3.3, upgrade to 4.4.0, upgrade to 4.5.0, 4.6.0, etc.
0 commit comments