{"id":14384307,"url":"https://github.com/applidium/Shutterbug","last_synced_at":"2025-08-23T17:31:30.449Z","repository":{"id":4985592,"uuid":"6143611","full_name":"applidium/Shutterbug","owner":"applidium","description":"Remote image loader with caching for Android","archived":false,"fork":false,"pushed_at":"2024-04-19T08:12:56.000Z","size":296,"stargazers_count":99,"open_issues_count":5,"forks_count":27,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-08-29T18:33:58.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://applidium.com/en/news/introducing_shutterbug_for_android/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"skyeagle/openid_active_record_store","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/applidium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-09T16:09:49.000Z","updated_at":"2023-07-13T20:30:06.000Z","dependencies_parsed_at":"2022-07-09T12:00:17.084Z","dependency_job_id":null,"html_url":"https://github.com/applidium/Shutterbug","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applidium%2FShutterbug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applidium%2FShutterbug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applidium%2FShutterbug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applidium%2FShutterbug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/applidium","download_url":"https://codeload.github.com/applidium/Shutterbug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716463,"owners_count":18269762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-28T18:01:17.975Z","updated_at":"2024-12-21T12:30:26.747Z","avatar_url":"https://github.com/applidium.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# Shutterbug - Remote image loader with caching for Android\n\n`Shutterbug` is an Android library that lets you fetch remote images and cache them. It is particularly suited for displaying remote images in lists or grids as it includes a convenience subclass of `ImageView` (`FetchableImageView`) that make implementation a one-liner.\n\nA dual memory and disk cache was implemented. It makes use of two backports of Android classes: [LruCache][] for the memory part and [DiskLruCache][] for the disk part. `LruCache` was introduced by API Level 12, but we provide it here as a standalone class so you can use the library under lower level APIs. Both `LruCache` and `DiskLruCache` are licensed under the Apache Software License, 2.0.\n\n`Shutterbug` was inspired by [SDWebImage][] which does the same thing on iOS. It uses the same structure and interface. People who are familiar with `SDWebImage` on iOS will feel at home with `Shutterbug` on Android.\n\n[SDWebImage]: https://github.com/rs/SDWebImage\n[LruCache]: http://developer.android.com/reference/android/util/LruCache.html\n[DiskLruCache]: https://github.com/JakeWharton/DiskLruCache\n[Android Support Library]: http://developer.android.com/tools/extras/support-library.html\n\n## How to use\n\nFirst, ensure that the following permissions were added to your AndroidManifest.xml file:\n\n    \u003cuses-permission android:name=\"android.permission.INTERNET\"/\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/\u003e\n\nThen, you just have to add the jar or the library project to your project.\n\n### Basic usage\n\nYou only need a context, an url and an `ImageView`:\n\n\tShutterbugManager.getSharedImageManager(context).download(url, imageView);\n\n### Using FetchableImageView\n\n1. Instantiate the subclass (either in your code or in an xml file, for example by replacing `ImageView` by `com.applidium.shutterbug.FetchableImageView`).\n2. Fetch the image (`setImage(String url)` or `setImage(String url, Drawable placeholderDrawable)` if you need to add a placeholder while waiting for the image to be fetched)\n3. That's it!\n\nWe also provide you with a listener interface (`FetchableImageViewListener`) which will help you refresh your UI if need.\n\n### Using ShutterbugManager\n\nIf you need to do more advanced coding, you can use `ShutterbugManager`. It is a singleton class whose instance is accessed by the static method `ShutterbugManager.getSharedManager(context)`. Downloading and caching is done by calling `download(String url, ShutterbugManagerListener listener)` on this instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplidium%2FShutterbug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplidium%2FShutterbug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplidium%2FShutterbug/lists"}