Background color not showing when withTransitionFrom(null)
adrianhartanto004 opened this issue · 2 comments
adrianhartanto004 commented
Problem
Background color is not showing when withTransitionFrom(imageView)
is set to withTransitionFrom(null)
To Reproduce
Steps to reproduce the behavior:
- Set the viewer background color
.withBackgroundColor(Color.BLACK)
- Set the viewer method
.withTransitionFrom(targetImageView)
to.withTransitionFrom(null)
- Click on any images in that has been set with the viewer
- See error that the background is not totally black
Expected behavior
Background color should be black.
florian-do commented
Hello,
Event with withTransitionFrom(imageView) the background alpha is at 0 at first
adrianhartanto004 commented
Hello,
Event with withTransitionFrom(imageView) the background alpha is at 0 at first
Hi there,
The background of the viewer will be transparent when the withTransitionFrom(imageView) is null because of the alpha from the view_image_viewer.xml backgroundView is set to 0.
I tried by changing the alpha to 1 or deleting the alpha of the backgroundView. This made the background black again which is good.