jayrambhia / CropperNoCropper

Instagram Style Image Cropper for Android (Library)
http://www.jayrambhia.com/project/nocropper-library
Apache License 2.0
475 stars 99 forks source link

No grid when moving #52

Open DanielMartinus opened 4 years ago

DanielMartinus commented 4 years ago

Hey there,

With the following configuration the CropperView still shows a grid view when moving the image even though the grid_color, thickness are set to make it transparant.

Is there a way to hide the grid lines when moving the image? For us this is not relevant since we don't try to align buildings and stuff :)

<com.fenchtose.nocropper.CropperView
    android:id="@+id/userImage"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_centerInParent="true"
    android:background="@color/white"
    app:nocropper__grid_color="@android:color/transparent"
    app:nocropper__grid_thickness="0dp"
    app:nocropper__padding_color="@color/white" />
When not moving when moving the image
Screenshot_1588080912 Screenshot_1588080914
jayrambhia commented 4 years ago

Hi, it's possible. You can use CropperView.setGridCallback