2015-08-19 57 views
1

我试过Picaso库,但它没有显示gif图像。我正在用json获取图片。 我尝试下面的代码: -如何在android中的ImageView中显示gif图像?

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

帮我吗?

回答

1

好做谷歌后我发现了一个库,这将在示出从JSON GIF图像link

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)帮助; (this).load(“your_url”)。into(iv);使用Glide