简体   繁体   English

Universal Image Loader纵向/横向问题Android Studio

[英]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. 我正在使用Universal Image Loader库加载和显示图库中的图像。 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 . 我看到他有一些东西应该根据大小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();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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