Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -346,5 +347,10 @@ private void updateMenuItemIconColor(Menu menu, int itemId, int color) {
}
}
}

public void onNextClick(View view) {
cropImage();
}

// endregion
}
11 changes: 10 additions & 1 deletion cropper/src/main/res/layout/crop_image_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
android:layout_height="match_parent">
<Button
android:onClick="onNextClick"
android:layout_gravity="bottom|center"
android:text="Next"
android:textColor="@android:color/white"
android:backgroundTint="@android:color/holo_blue_light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</com.theartofdev.edmodo.cropper.CropImageView>