使用Fresco來加載圖片的Demo項目:FrescoDemo

jopen 9年前發布 | 57K 次閱讀 Android開發 移動開發 FrescoDemo

一個基于Android Design library使用Fresco來加載圖片的Demo項目。

It seems that not very perfect by loading GIF with progressbar, I think may be after the image downloaded, it needs much time to handle the GIF and show it.

SubsamplingScaleImageView appear a problem like this:Bitmap too large to be uploaded into a texture (440x4390, max=4096x4096), If the image is too large. So I use PooledByteBuffer instead of CloseableImage.

    bytes = dataSource.getResult();
    PooledByteBuffer pooledByteBuffer = bytes.get();
    PooledByteBufferInputStream sourceIs = new PooledByteBufferInputStream(pooledByteBuffer);
    BufferedInputStream bis = new BufferedInputStream(sourceIs);
    //TODO something

The photos is from

http://www.pexels.com/

Screenshots

image

image

Open source projects

fresco

cheesesquare

PhotoView

subsampling-scale-image-view

android-gif-drawable


項目主頁:
http://www.baiduhome.net/lib/view/home/1436094840774

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!