Skip to content

Android image files cache in local SDCard, and reuse image. This project used LRU cache.

License

Notifications You must be signed in to change notification settings

Spring-Xu/Android-ImageFileCache

Repository files navigation

Android-ImageFileCache

Android image files cache in local SDCard, and reuse image. This project used LRU cache.

#Contact me

#How to use this API?

  • Initialize the LRUFileCache's config
//config the file cache
LRUFileCache.getInstance().setFileLoadOptions(new FileCacheOptions.Builder()
        .setMaxFileCount(5)
        .setMaxCacheSize(5 * 1024 * 1024)
        .setIsUseFileCache(true)
        .setCacheRootPath(cachePath)
        .builder());
  • Show the image demo
ImageHelper.getInstance().showImage(hodler.imageView, getItem(position),R.drawable.dd);

About

Android image files cache in local SDCard, and reuse image. This project used LRU cache.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages