stfalcon-studio / StfalconImageViewer

A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures
http://stfalcon.com
Apache License 2.0
2k stars 256 forks source link

Screen goes black after showing the image #82

Closed iadcialim closed 2 years ago

iadcialim commented 2 years ago

I have this simple ImageView in a fragment. My code looks like this

private fun expandImage(uri: Uri?, view: ImageView) {
        context?.let {
            val list = listOf(uri)
            StfalconImageViewer.Builder(it, list) { _, imageUri ->
                Glide
                    .with(it)
                    .load("http://placekitten.com/g/200/300")
                    .skipMemoryCache(false)
                    .into(view)
            }
                .allowSwipeToDismiss(true)
                .allowZooming(true)
                .withTransitionFrom(view)
                .withHiddenStatusBar(false)
                .show(true)
        }
    }

Full project: ImageViewerApp.zip

After showing the image for a while, it goes black. Does this only work with recycleview?

rranjithkumar100 commented 1 year ago

if we pass the URIs still it showing black screen instead of images. Not fixed yet