使用Fresco来加载图片的Demo项目:FrescoDemo

jopen 9年前

一个基于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.open-open.com/lib/view/home/1436094840774