The bottom area of the picture cannot be cropped, so the bottom of the picture must be cropped
<com.theartofdev.edmodo.cropper.CropImageView
android:id="@+id/cropImageView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
android:layout_marginTop="39dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="90dp"
android:visibility="gone"
app:cropAutoZoomEnabled="true"
app:cropFixAspectRatio="false"
app:cropScaleType="fitCenter"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/iv_crop" />
but setImageResource that is ok ,setImageBitmap is not ok
The bottom area of the picture cannot be cropped, so the bottom of the picture must be cropped <com.theartofdev.edmodo.cropper.CropImageView android:id="@+id/cropImageView" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="16dp" android:layout_marginTop="39dp" android:layout_marginRight="16dp" android:layout_marginBottom="90dp" android:visibility="gone" app:cropAutoZoomEnabled="true" app:cropFixAspectRatio="false" app:cropScaleType="fitCenter" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toBottomOf="@+id/iv_crop" /> but setImageResource that is ok ,setImageBitmap is not ok