nostra13 / Android-Universal-Image-Loader

Powerful and flexible library for loading, caching and displaying images on Android.
Apache License 2.0
16.79k stars 6.1k forks source link

Images in List get stretched #782

Open OyaSaid opened 9 years ago

OyaSaid commented 9 years ago

I have a list with images and the images are stretched no matter what I change.

here are the options

DisplayImageOptions options = new DisplayImageOptions.Builder()
                .showImageOnLoading(R.drawable.loading_icon)
                .showImageForEmptyUri(R.drawable.ic_launcher)
                .showImageOnFail(R.drawable.ic_launcher)
                .cacheInMemory(true)
                .cacheOnDisk(true)
                .considerExifParams(true)
                .imageScaleType(ImageScaleType.NONE)
                .displayer(new RoundedBitmapDisplayer(100)).build(); 

and the xml

 <ImageView
        android:id="@+id/artist_image"
        android:layout_width="@dimen/circle_imageview"
        android:layout_height="@dimen/circle_imageview"
        android:layout_alignParentLeft="true"
        android:adjustViewBounds="true"
        android:scaleType="centerCrop" />
beprogressive commented 9 years ago

same problem after update

nostra13 commented 9 years ago

"Streched" how?

raahulbiswas commented 9 years ago

I don't know if a solution has been posted for this but I have a square imageview with the width and the height set to 250dp each. I tried android:adjustViewBounds="true" android:scaleType="centerCrop"

However the images are still being squished and not maintaining their aspect ratio. Anyone have a solution for this?