daimajia / daimajia/AndroidImageSlider

Images blank in landscape

Open
#295 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Hello, thank you for this awesome library. i used it for some of my apps and it works great.
but I have a problem recently.
i have an app with landscape screen. I put image slide on its home activity, inside a fragment.
But whenever the screen turned off or when I left press home button and open app again through recent apps, the slider will show blank / no images but the indicator is still there (in my case I have 5 indicators) and it's still moving. after moved to 1-2 dots the images will start to appear again and it will works normally.

I tried to set my app to portrait and there's no problem there.

I think the problem comes from the rotation between lockscreen or home screen to my app.
It is because whenever the screen turned on it will show Lock Screen which is portrait and after unlocking it will move to my app and show rotate animation.
It is also the same when I press home button from my app. Home Screen (of my device) is portrait, so when i open my app again from recent apps, it will show rotate again.

this problem mostly appeared when I pressed home or turned screen off or both when the slider is on swiping to the next image. (see sample image below)

![screenshot_2017-02-14-16-20-06-1](https://cloud.githubusercontent.com/assets/16285098/22923260/4584e0c4-f2d3-11e6-9972-46f7af860a53.png)

Blank slider:
![screenshot_2017-02-14-16-20-38-1](https://cloud.githubusercontent.com/assets/16285098/22923267/51d6579a-f2d3-11e6-8bc3-efcabdbdf0df.png)

I have some modification in the library:
1. use rounded image view ([here](https://github.com/vinc3m1/RoundedImageView))
2. add bitmap options ([here](https://github.com/daimajia/AndroidImageSlider/issues/130))

before this I use url link instead of bitmap and the image is even worse, before it slides normally, some first images are shown pressed .

how do I prevent the blank layout ?
Thank you.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.