2015-08-19 55 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