Skip to content

Commit b7cf29c

Browse files
committed
Edit README
1 parent 2ef5c37 commit b7cf29c

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# ImageCropView
2+
ImageCropView help you image crop in android platform.
23
ImageCropView crops image by moving image under fixed crop area like instagram and iOS.
34
Image zoom in/out is base on [sephiroth74's imageViewZoom](https://github.com/sephiroth74/ImageViewZoom).
45
Sample app is base on [aviary SDK sample](https://developers.aviary.com).
@@ -15,19 +16,34 @@ Android SDK Build-tools 21.1.2
1516
## Usage
1617
##### Maven
1718
<dependency>
18-
<groupId&gt;com.naver.android.helloyako</groupId>
19+
<groupId>com.naver.android.helloyako</groupId>
1920
<artifactId>imagecropview</artifactId>
20-
<version>1.0.0</version>
21+
<version>1.0.3</version>
2122
</dependency>
2223

2324
##### Gradle
24-
repositories {
25-
mavenCentral()
26-
}
27-
2825
dependencies {
2926
compile 'com.naver.android.helloyako:imagecropview:1.0.3'
3027
}
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+
3147

3248
## Demo
3349
[APK](https://github.com/naver/android-imagecropview/raw/master/apk/app-release.apk)

0 commit comments

Comments
 (0)