Image-Cropper Library “CropMe”

Usage

dependencies {
compile 'com.github.takusemba:cropme:1.0.3'
compile "com.android.support:support-dynamic-animation:26.x.x"
}
<com.takusemba.cropme.CropView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cropme_background_alpha="80%"
app:cropme_max_scale="3"
app:cropme_result_height="80%"
app:cropme_result_width="80%"
app:cropme_with_border="true" />
cropView.setUri(uri);
// or
cropView.setBitmap(bitmap);
cropView.crop(new OnCropListener() {
@Override
public void onSuccess(Bitmap bitmap) {
// do something
}

@Override
public void onFailure() {

}
});

Last

--

--

Android Engineer at AbemaTV Github: https://github.com/takusemba

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store