{"id":18270545,"url":"https://github.com/lucasr/smoothie","last_synced_at":"2025-04-05T01:30:40.869Z","repository":{"id":6094461,"uuid":"7321480","full_name":"lucasr/smoothie","owner":"lucasr","description":"[DEPRECATED] Easy async loading for Android's ListView/GridView","archived":true,"fork":false,"pushed_at":"2015-01-31T23:15:39.000Z","size":867,"stargazers_count":985,"open_issues_count":10,"forks_count":163,"subscribers_count":78,"default_branch":"master","last_synced_at":"2024-11-05T11:52:55.384Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-25T23:54:26.000Z","updated_at":"2024-06-07T04:44:10.000Z","dependencies_parsed_at":"2022-09-05T21:51:32.385Z","dependency_job_id":null,"html_url":"https://github.com/lucasr/smoothie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fsmoothie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fsmoothie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fsmoothie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasr%2Fsmoothie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasr","download_url":"https://codeload.github.com/lucasr/smoothie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276022,"owners_count":20912285,"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-11-05T11:38:42.703Z","updated_at":"2025-04-05T01:30:40.389Z","avatar_url":"https://github.com/lucasr.png","language":"Java","funding_links":[],"categories":["etc","Libs"],"sub_categories":["\u003cA NAME=\"Utility\"\u003e\u003c/A\u003eUtility"],"readme":"NOTE: Smoothie's API is not final yet. Although the library is fairly\nfuncional, this is still beta-quality code. Do not rely on it for production\ncode just yet. Feedback is very welcome!\n\nWhat is it?\n===========\n\nSmoothie provides a simple API to load ListView/GridView items asynchronously, off the UI thread.\n\nFeatures\n========\n\n* Tiny API to implement asynchonous loading of items in Android's\n  ListView and GridView.\n* Multi-part item support: split the loading of each item into separate\n  asynchronous operations with different global priorities.\n* Tight integration between user interaction and async loading of items i.e.\n  stops loading items on fling, enables loading when panning with finger\n  down, etc.\n* Prefetch items beyond the currently visible items to reduce the number of\n  placeholder-type items while scrolling.\n\nHow do I use it?\n================\n\n1. Add Smoothie's jar as a dependency to your project.\n\n2. Add an `AsyncListView` or `AsyncGridView` to your layout.\n\n2. Implement an `SimpleItemLoader`. You're only required to override three methods:\n   `getItemParams()`, `loadItem()`, and `displayItem()`. You can override more\n   methods if you want to handle loading items from memory, preloading items,\n   resetting item views, etc.\n\n3. On Activity/Fragment creation, attach an `ItemManager` instance to your\n   AsyncListView/AsyncGridView:\n\n   ```java\n   ItemManager.Builder builder = new ItemManager.Builder(yourItemLoader);\n   builder.setPreloadItemsEnabled(true).setPreloadItemsCount(5);\n   builder.setThreadPoolSize(4);\n   ItemManager itemManager = builder.build();\n\n   AsyncListView listView = (AsyncListView) findViewById(R.id.list);\n   listView.setItemManager(itemManager);\n   ```\n\nThe sample app has an example of an ItemEngine powered by\n[Android-BitmapCache](https://github.com/chrisbanes/Android-BitmapCache) that\nfades images in as they finish loading on a ListView.\n\nThe API docs contain a more detailed overview of the API.\n\n\nDownload\n--------\n\nGrab via Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.lucasr.smoothie\u003c/groupId\u003e\n  \u003cartifactId\u003esmoothie\u003c/artifactId\u003e\n  \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\ncompile 'org.lucasr.smoothie:smoothie:0.1.0'\n```\n\nWant to help?\n=============\n\nFile new issues to discuss specific aspects of the API and to propose new\nfeatures.\n\nLicense\n=======\n\n    Copyright 2012 Lucas Rocha\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasr%2Fsmoothie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasr%2Fsmoothie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasr%2Fsmoothie/lists"}