Android ImageView加载高分辨率图像时质量非常差

Android ImageView加载高分辨率图像时质量非常差,android,android-studio,android-imageview,android-listfragment,universal-image-loader,Android,Android Studio,Android Imageview,Android Listfragment,Universal Image Loader,我使用ListFragment来显示延迟加载的ImageView对象的ListView。正确的数据来自我的数据源,我有相当高分辨率图像的URL(大约1000px宽,150kb)。我用这些来完全填充每行110dp高 我遇到的问题是图像加载的分辨率非常低: 问题不在于源图像,因为它的质量足够高: 我将图像居中,然后对其进行裁剪: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http:

我使用
ListFragment
来显示延迟加载的
ImageView
对象的
ListView
。正确的数据来自我的数据源,我有相当高分辨率图像的URL(大约1000px宽,150kb)。我用这些来完全填充每行110dp高

我遇到的问题是图像加载的分辨率非常低:

问题不在于源图像,因为它的质量足够高:

我将图像居中,然后对其进行裁剪:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:minHeight="110dp">

    <TextView
        android:id="@+id/galleryTitle"
        android:layout_width="wrap_content"
        android:layout_height="80dp"
        android:layout_marginLeft="95dp"
        android:layout_marginRight="5dp"
        android:gravity="center_vertical"
        android:hint="16dp"
        android:lineSpacingExtra="0dp"
        android:lines="3"
        android:text="TextView"
        android:textSize="16sp"
        android:textStyle="bold" />

    <ImageView
        android:id="@+id/galleryImageView"
        android:layout_width="fill_parent"
        android:layout_height="110dp"
        android:scaleType="centerCrop"
        android:src="@drawable/default_background" />

</RelativeLayout>

你知道为什么它会显示分辨率如此低的图像吗?这些图片看起来是缩小了的。查看该库,默认功能是2图像采样的威力。我想这是你问题的根源

例如:

DisplayImageOptions opts = new DisplayImageOptions.Builder().imageScaleType(ImageScaleType.NONE).build();

imageLoader.DisplayImage(item.imageUrlExtraLarge, imageView, opts);

这就是问题所在。谢谢
DisplayImageOptions opts = new DisplayImageOptions.Builder().imageScaleType(ImageScaleType.NONE).build();

imageLoader.DisplayImage(item.imageUrlExtraLarge, imageView, opts);