简体   繁体   中英

Universal Image Loader portrait/ landscape issue Android Studio

I am using the Universal Image Loader library to load and show an image from the gallery. My problem is that the image is not being shown properly. No matter what photo I choose they are all displayed in landscape mode.I have to turn them if I want portrait. I saw that he has something that should render them automatically based on size https://github.com/nostra13/Android-Universal-Image-Loader/commit/8ba3407c3b781fbc714377e8b3845242741468d8 . Is that facility integrated automatically in the loader or do I have to implement it somehow ?

I think you need to add a method in display options, if you don't..

DisplayImageOptions options = new DisplayImageOptions.Builder()
...
        .considerExifParams(true)
...
        .build();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM