vinc3m1 / RoundedImageView

A fast ImageView that supports rounded corners, ovals, and circles.
Other
6.44k stars 1.25k forks source link

Display error when layout change caused by screen rotation #268

Closed sunbeams001 closed 1 year ago

sunbeams001 commented 3 years ago
  1. screen in vertical orientation, all images display well
  2. rotate screen to horizontal, image(the right one) can not auto adjust

image

left one, normal ImageView with shape clip, can auto adjust layout change

<ImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"
        android:src="@drawable/main_novel"
        android:background="@drawable/shape_round_outline"
        android:outlineProvider="background" />

right one, RoundedImageView

<com.makeramen.roundedimageview.RoundedImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:scaleType="centerCrop"
        android:src="@drawable/center"
        app:riv_corner_radius="12dp" />