Display error when layout change caused by screen rotation
sunbeams001 opened this issue · 0 comments
sunbeams001 commented
- screen in vertical orientation, all images display well
- rotate screen to horizontal, image(the right one) can not auto adjust
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" />