gpt4 book ai didi

android - 如何在 Android 的 ImageView 中显示 gif 图像?

转载 作者:行者123 更新时间:2023-11-30 01:56:42 27 4
gpt4 key购买 nike

我试过 Picaso 库,但它不显示 gif 图像。我正在获取带有 json 的图像。我尝试了以下代码:-

Picasso.with(mContext).load( stationWithState.station.getLogo()).transform(transformation).placeholder(R.drawable.ic_launcher).into(viewHolder.stationImageView[i]);

请帮帮我好吗?

最佳答案

好的,在谷歌搜索之后,我找到了一个库,它可以帮助显示来自 json 的 gif 图像 link

Ion.with(viewHolder.stationImageView[i])
.placeholder(R.drawable.ic_launcher)
.error(R.drawable.ic_launcher)
.fitCenter()
.load(stationWithState.station.getLogo());

关于android - 如何在 Android 的 ImageView 中显示 gif 图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32094868/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com