Android的imageView ScaleType.FIT_CENTER ScaleType.FIT_XY
如题,如果直接设置ScaleType.FIT_CENTER
有可能在图片比较大的时候,会出现上下或者左右出现空白的情况
android:adjustViewBounds="true" 即适应View的边缘
一般用法
android:scaleType="fitCenter"
android:adjustViewBounds="true"
如题,如果直接设置ScaleType.FIT_CENTER
有可能在图片比较大的时候,会出现上下或者左右出现空白的情况
android:adjustViewBounds="true" 即适应View的边缘
一般用法
android:scaleType="fitCenter"
android:adjustViewBounds="true"