ImageView
- centerCrop:保持纵横比缩放图片,以使图片能完全覆盖ImageView。
- fitXY:横向、纵向独立缩放,以适应该ImageView。--变形
- fitCenter:保持纵横比缩放图片,缩放完成后将图片放在ImageView的中央
<ImageView
android:id="@+id/iv_1"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="#ff6666"
android:src="@drawable/WechatIMG1"
android:scaleType="centerCrop"/>
centerCrop
fitXY
fitCenter