vinc3m1/RoundedImageView

Display error when layout change caused by screen rotation

sunbeams001 opened this issue · 0 comments

  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" />