set the initial crop window padding to 0

This commit is contained in:
tibbi 2016-10-06 20:09:24 +02:00
parent f4655761bd
commit a7f3bda7bd
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,6 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
return
}
Log.e("DEBUG", "uri $TAG ${intent.data}")
crop_image_view.apply {
guidelines = CropImageView.Guidelines.OFF
setOnCropImageCompleteListener(this@EditActivity)

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/coordinator_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -9,6 +10,7 @@
<com.theartofdev.edmodo.cropper.CropImageView
android:id="@+id/crop_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
android:layout_height="match_parent"
app:cropInitialCropWindowPaddingRatio="0"/>
</RelativeLayout>