Skip to content

Commit

Permalink
Updated README and Changelog for 0.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Rambhia <jayrambhia777@gmail.com>
  • Loading branch information
jayrambhia committed May 3, 2017
1 parent 39a754c commit 2992603
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### V 0.2.0 (2017-05-03)
Option to load image as fit to center. Updated resource attributes to have prefix `nocropper__`.

### V 0.1.9 (2017-04-20)
Fixed [image center panning issue with min zoom](https://github.com/jayrambhia/CropperNoCropper/issues/21). Fixed overriding of `min zoom` by the view.

Expand Down
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ There are some styling and customizations also available.
### Dependency

dependencies {
compile 'com.fenchtose.nocropper:nocropper:0.1.9'
compile 'com.fenchtose.nocropper:nocropper:0.2.0'
}

## CropperImageView
Expand All @@ -54,10 +54,10 @@ It automatically adjusts the position of the image, if it's zoomed out.
android:id="@+id/cropper_view"
android:layout_width="match_parent"
android:layout_height="0dp"
app:grid_opacity="0.8"
app:grid_thickness="0.8dp"
app:grid_color="@color/colorAccent"
app:padding_color="#ff282828"/>
app:nocropper__grid_opacity="0.8"
app:nocropper__grid_thickness="0.8dp"
app:nocropper__grid_color="@color/colorAccent"
app:nocropper__padding_color="#ff282828"/>

And that's it. `CropperView` is ready to be used anywhere in the app. No dependencies.

Expand All @@ -74,19 +74,26 @@ And that's it. `CropperView` is ready to be used anywhere in the app. No depende
- `fitToCenter()` - Fit Image in the center (no cropping view)
- `setPaddingColor(int color)` - Set Color of square image padding
- `setMakeSquare(boolean status)` - If you want to add padding in the cropped image (if cropped image is not square)
- `isMakeSquare()` - Check if cropper will give a square image or not
- `isMakeSquare()` - Check if cropper will give a square image or not
- `initWithFitToCenter(boolean fitToCenter)` - Cropper will fit image to center instead of cropping to center when bitmap is set.
- `getCroppedBitmap()` - Get Cropped Bitmap
- `getCroppedBitmapAsync()` - Crop bitmap in background thread and get result via `CropperCallback`.
- `release()` - Remove and Recycle Bitmap


### Styleables

- `grid_color` - Color of the grid
- `grid_thickness` - Thickness of grid lines
- `grid_opacity` - Opacity of grid lines
- `padding_color` - Color of the image padding
- `add_padding_to_make_square` - boolean
- `nocropper__grid_color` - Color of the grid
- `nocropper__grid_thickness` - Thickness of grid lines
- `nocropper__grid_opacity` - Opacity of grid lines
- `nocropper__padding_color` - Color of the image padding
- `nocropper__add_padding_to_make_square` - boolean
- `nocropper__fit_to_center` - boolean - Fit image to center instead of crop when you set a bitmap

### 0.1 to 0.2 update note:

All the styleables are renamed to have prefix `nocropper__` so as not to have collision issues with other resource attributes. By collision I mean, your app will not
build if it has to resources attributes with same name.

## Licenses and Release History

Expand Down

0 comments on commit 2992603

Please sign in to comment.