File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#### This project aims to provide an ultimate and flexible image cropping experience. Made in [ Yalantis] (https://yalantis.com/?utm_source=github)
4
4
5
+ <img src =" https://github.com/Yalantis/uCrop/blob/master/preview.png " alt =" alt text " style =" width :200 ;height :200 " >
6
+
5
7
# Usage
6
8
7
9
* For a working implementation, please have a look at the Sample Project - sample*
8
10
9
11
1 . Include the library as local library project.
10
12
11
- ``` compile 'com.yalantis:ucrop:[latest version] ' ```
13
+ ``` compile 'com.yalantis:ucrop:1.0.0 ' ```
12
14
15
+ 2 . Add UCropActivity into your AndroidManifest.xml
13
16
14
- 2 . The uCrop configuration is created using the builder pattern.
17
+ ```
18
+ <activity
19
+ android:name="com.yalantis.ucrop.UCropActivity"
20
+ android:screenOrientation="portrait"/>
21
+ ```
22
+
23
+ 3. The uCrop configuration is created using the builder pattern.
15
24
16
25
```java
17
26
UCrop.of(sourceUri, destinationUri)
21
30
```
22
31
23
32
24
- 3 . Override ` onActivityResult ` method and handle uCrop result.
33
+ 4 . Override `onActivityResult` method and handle uCrop result.
25
34
26
35
```java
27
36
@Override
37
46
38
47
# Customization
39
48
49
+ If you want to let your users choose crop ratio dynamically, just do not call `withAspectRatio(x, y)`.
50
+
40
51
uCrop builder class has method `withOptions(UCrop.Options option)` which extends library configurations.
41
52
42
53
Currently you can change:
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ def isReleaseBuild() {
17
17
}
18
18
19
19
allprojects {
20
+ version = VERSION_NAME
21
+ group = GROUP
22
+
20
23
repositories {
21
24
jcenter()
22
25
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ android {
9
9
minSdkVersion 10
10
10
targetSdkVersion 23
11
11
versionCode 1
12
- versionName " 1.0"
12
+ versionName " 1.0.0 "
13
13
}
14
14
buildTypes {
15
15
release {
You can’t perform that action at this time.
0 commit comments