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

问题描述 投票:1回答:2

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

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

请帮我 ?

android image gif
2个回答
1
投票

谷歌之后我发现了一个有助于显示来自json link的gif图像的库

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

0
投票

ImageView iv =(ImageView)findViewById(R.id.iv);

GlideApp.with(本).load( “YOUR_URL”)到(ⅳ)。

使用Glide

© www.soinside.com 2019 - 2024. All rights reserved.