1
1
# ImageCropView
2
+ ImageCropView help you image crop in android platform.
2
3
ImageCropView crops image by moving image under fixed crop area like instagram and iOS.
3
4
Image zoom in/out is base on [ sephiroth74's imageViewZoom] ( https://github.com/sephiroth74/ImageViewZoom ) .
4
5
Sample app is base on [ aviary SDK sample] ( https://developers.aviary.com ) .
@@ -15,19 +16,34 @@ Android SDK Build-tools 21.1.2
15
16
## Usage
16
17
##### Maven
17
18
<dependency>
18
- <groupId> com.naver.android.helloyako</groupId>
19
+ <groupId> com.naver.android.helloyako</groupId>
19
20
<artifactId>imagecropview</artifactId>
20
- <version>1.0.0 </version>
21
+ <version>1.0.3 </version>
21
22
</dependency>
22
23
23
24
##### Gradle
24
- repositories {
25
- mavenCentral()
26
- }
27
-
28
25
dependencies {
29
26
compile 'com.naver.android.helloyako:imagecropview:1.0.3'
30
27
}
28
+
29
+ ## Grid Option
30
+ #### XML
31
+ <com.naver.android.helloyako.imagecrop.view.ImageCropView
32
+ xmlns:imagecrop="http://schemas.android.com/apk/res-auto"
33
+ android:layout_width="match_parent"
34
+ android:layout_height="match_parent"
35
+ imagecrop:setInnerGridMode="on"
36
+ imagecrop:gridInnerStroke="1dp"
37
+ imagecrop:gridInnerColor="#66ffffff"
38
+ imagecrop:setOuterGridMode="on"
39
+ imagecrop:gridOuterStroke="1dp"
40
+ imagecrop:gridOuterColor="#ffffff"/>
41
+
42
+ #### JAVA
43
+ imageCropView.setGridInnerMode(ImageCropView.GRID_ON);
44
+ imageCropView.setGridOuterMode(ImageCropView.GRID_ON);
45
+
46
+
31
47
32
48
## Demo
33
49
[ APK] ( https://github.com/naver/android-imagecropview/raw/master/apk/app-release.apk )
0 commit comments