diff --git a/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImageActivity.java b/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImageActivity.java index d1afa9f0..38677c32 100644 --- a/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImageActivity.java +++ b/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImageActivity.java @@ -29,6 +29,7 @@ import android.util.Log; import android.view.Menu; import android.view.MenuItem; +import android.view.View; import android.widget.Toast; import java.io.File; @@ -346,5 +347,10 @@ private void updateMenuItemIconColor(Menu menu, int itemId, int color) { } } } + + public void onNextClick(View view) { + cropImage(); + } + // endregion } diff --git a/cropper/src/main/res/layout/crop_image_activity.xml b/cropper/src/main/res/layout/crop_image_activity.xml index dfc19cae..ee590c2a 100644 --- a/cropper/src/main/res/layout/crop_image_activity.xml +++ b/cropper/src/main/res/layout/crop_image_activity.xml @@ -3,4 +3,13 @@ android:id="@+id/cropImageView" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent"/> \ No newline at end of file + android:layout_height="match_parent"> +