{"id":13507609,"url":"https://github.com/koush/UrlImageViewHelper","last_synced_at":"2025-03-30T09:32:59.692Z","repository":{"id":1430071,"uuid":"1605950","full_name":"koush/UrlImageViewHelper","owner":"koush","description":"Android library that sets an ImageView's contents from a url. Manages image downloading, caching, and makes your coffee too.","archived":false,"fork":false,"pushed_at":"2014-06-19T18:18:25.000Z","size":2776,"stargazers_count":968,"open_issues_count":19,"forks_count":262,"subscribers_count":79,"default_branch":"master","last_synced_at":"2024-10-12T16:18:43.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koush.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":"2011-04-12T19:57:36.000Z","updated_at":"2024-10-06T02:38:19.000Z","dependencies_parsed_at":"2022-07-29T13:18:58.314Z","dependency_job_id":null,"html_url":"https://github.com/koush/UrlImageViewHelper","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/koush%2FUrlImageViewHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koush%2FUrlImageViewHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koush%2FUrlImageViewHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koush%2FUrlImageViewHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koush","download_url":"https://codeload.github.com/koush/UrlImageViewHelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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-01T02:00:36.939Z","updated_at":"2025-03-30T09:32:59.056Z","avatar_url":"https://github.com/koush.png","language":"Java","readme":"# This library has been deprecated, use ion instead:\n\nhttp://github.com/koush/ion\n\n## UrlImageViewHelper\nUrlImageViewHelper will fill an ImageView with an image that is found at a URL.\n\n### Sample Project\n\nThe sample will do a Google Image Search and load/show the results asynchronously.\n\n![](https://raw.github.com/koush/UrlImageViewHelper/master/helper2.png)\n\n### Download\n\nDownload [the latest JAR](http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy\u0026g=com.koushikdutta.urlimageviewhelper\u0026a=urlimageviewhelper\u0026v=LATEST\n) or grab via Maven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.koushikdutta.urlimageviewhelper\u003c/groupId\u003e\n    \u003cartifactId\u003eurlimageviewhelper\u003c/artifactId\u003e\n    \u003cversion\u003e(insert latest version)\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Usage\n\nUrlImageViewHelper will automatically download and manage all the web images and ImageViews.\nDuplicate urls will not be loaded into memory twice. Bitmap memory is managed by using\na weak reference hash table, so as soon as the image is no longer used by you,\nit will be garbage collected automatically.\n\nUsage is simple:\n\n```java\nUrlImageViewHelper.setUrlDrawable(imageView, \"http://example.com/image.png\");\n```\n\n\nWant a placeholder image while it is being downloaded?\n\n```java\nUrlImageViewHelper.setUrlDrawable(imageView, \"http://example.com/image.png\", R.drawable.placeholder);\n```\n\n\nDon't want to use a placeholder resource, but a drawable instead?\n\n```java\nUrlImageViewHelper.setUrlDrawable(imageView, \"http://example.com/image.png\", drawable);\n```\n\n\nWhat if you want to preload images for snazzy fast loading?\n\n```java\nUrlImageViewHelper.loadUrlDrawable(context, \"http://example.com/image.png\");\n```\n\n\nWhat if you only want to cache the images for a minute?\n\n```java\n// Note that the 3rd argument \"null\" is an optional interstitial\n// placeholder image.\nUrlImageViewHelper.setUrlDrawable(imageView, \"http://example.com/image.png\", null, 60000);\n```\n\nUrlImageViewHelper is pretty smart. It can even load the photo for an Android contact\nif given a Contact Content Provider URI.\n\n```java\nUrlImageViewHelper.setUrlDrawable(imageView, \"content://com.android.contacts/contacts/1115\", R.drawable.dummy_contact_photo);\n```\n\n### FAQ\n\n**Does it work in list adapters when views are reused? (convertView)**\n\nYes.\n\n\n### Featured Implementations\n\n * [ROM Manager](https://play.google.com/store/apps/details?id=com.koushikdutta.rommanager\u0026hl=en)\n * [Carbon](https://play.google.com/store/apps/details?id=com.koushikdutta.backup\u0026hl=en)\n * Let me know if you use this library, so I can add it to the list!\n","funding_links":[],"categories":["CN"],"sub_categories":["[Koushik Dutta](https://github.com/koush)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoush%2FUrlImageViewHelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoush%2FUrlImageViewHelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoush%2FUrlImageViewHelper/lists"}