简体   繁体   English

如何显示来自 firebase 的图像?

[英]how can i display image from firebase?

Example:例子:这里

as you can see, when i clicked on first image it will show fullscreen activity but the first image not display.如您所见,当我单击第一张图片时,它将显示全屏活动,但第一张图片不显示。

I'm using holder connect to Fullscreen Activity.我正在使用持有人连接到全屏活动。

holder.postImage.setOnClickListener {
        val intent = Intent(mContext, FullscreenActivity::class.java)
        mContext.startActivity(intent)
    }

and Fullscreen Activity created from android studio (Default)和从 android studio 创建的全屏活动(默认)

What a code for display image from firebase?显示来自 firebase 的图像的代码是什么?

How to fix?怎么修?

Use glide/picasso library使用 glide/picasso 库

glide: https://github.com/bumptech/glide picasso: https://square.github.io/picasso滑行: https://github.com/bumptech/glide毕加索: https://square.github.io/picasso

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

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