簡體   English   中英

如何在Android的ImageView中顯示gif圖像?

[英]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());

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

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

使用滑翔

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM