[英]How to show gif image in ImageView in android?
我嘗試了Picaso庫,但未顯示gif圖像。 我正在使用json獲取圖像。 我嘗試了以下代碼:-
Picasso.with(mContext).load( stationWithState.station.getLogo()).transform(transformation).placeholder(R.drawable.ic_launcher).into(viewHolder.stationImageView[i]);
請幫我 ?
好的,做完谷歌后,我發現了一個庫,它將有助於顯示來自json 鏈接的 gif圖像
Ion.with(viewHolder.stationImageView[i])
.placeholder(R.drawable.ic_launcher)
.error(R.drawable.ic_launcher)
.fitCenter()
.load(stationWithState.station.getLogo());
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.