最近寫gif瀏覽的app,暫時用的glide加載gif ,試了Fresco感覺速度不如glide,看到一些app是先加載縮略圖,點擊在加載動圖,感覺體驗不錯,想問一下是怎么實現(xiàn)的?是服務(wù)端那邊處理生成一張縮略圖嗎?還是我這邊處理?如果我這邊處理是怎么處理?
學(xué)習(xí)是最好的投資!
The server saves a gif image and sends the address of the animated image when requesting.
Load the first frame of the dynamic image:
Glide.with(context).load(url).asBitmap().into(imageview);
Click event to load dynamic image:
Glide.with(context).load(url).asGif().into(imageview);