mirror of
				https://github.com/SimpleMobileTools/Simple-Gallery.git
				synced 2025-06-05 21:59:19 +02:00 
			
		
		
		
	set the initial crop window padding to 0
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user