Android 通用图像加载器图像比例

Android 通用图像加载器图像比例,android,imageview,universal-image-loader,image-scaling,Android,Imageview,Universal Image Loader,Image Scaling,我正在我的应用程序中使用通用图像加载器 这是下载图片的最好的图书馆,但我有一个问题 我下载的图像小于设备的宽度 我需要图像的宽度=设备宽度和缩放高度 你知道我该怎么做吗?你可以像这样使用imageview <ImageView android:id="@+id/imageView_clock" android:layout_width="fill_parent" android:layout_height="fill_parent" android:scaleType="cente

我正在我的应用程序中使用通用图像加载器

这是下载图片的最好的图书馆,但我有一个问题

我下载的图像小于设备的宽度

我需要图像的宽度=设备宽度和缩放高度


你知道我该怎么做吗?

你可以像这样使用imageview

<ImageView
 android:id="@+id/imageView_clock"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:scaleType="centerCrop"
 android:src="@drawable/ic_icon" />

只需检查android:scaleType=“fitXY”属性,您就可以使用
android:scaleType=“fitXY”
android:scaleType=“centerCrop”
来查看您的
ImageView
。当图像分辨率小于设备宽度时,您是否得到了想要达到的@unercial???fitXY错误缩放效果。中心裁剪交叉我的形象。。我在这里找到了解决方案:
 android:scaleType="centerCrop" // use this