{"id":13641370,"url":"https://github.com/imallan/JellyRefreshLayout","last_synced_at":"2025-04-20T07:33:10.039Z","repository":{"id":34873367,"uuid":"38880850","full_name":"imallan/JellyRefreshLayout","owner":"imallan","description":"A pull-down-to-refresh layout inspired by Lollipop overscrolled effects","archived":false,"fork":false,"pushed_at":"2016-08-24T21:07:37.000Z","size":433,"stargazers_count":623,"open_issues_count":4,"forks_count":94,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-08-03T01:21:59.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imallan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-10T13:05:52.000Z","updated_at":"2024-07-21T14:18:04.000Z","dependencies_parsed_at":"2022-09-15T15:40:48.203Z","dependency_job_id":null,"html_url":"https://github.com/imallan/JellyRefreshLayout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imallan%2FJellyRefreshLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imallan%2FJellyRefreshLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imallan%2FJellyRefreshLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imallan%2FJellyRefreshLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imallan","download_url":"https://codeload.github.com/imallan/JellyRefreshLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223822261,"owners_count":17208833,"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-02T01:01:20.180Z","updated_at":"2024-11-09T11:31:17.103Z","avatar_url":"https://github.com/imallan.png","language":"Java","readme":"# JellyRefreshLayout\nA pull-down-to-refresh layout inspired by Lollipop overscrolled effects\n\nPreview\n--------\n![Preview](images/preview.gif)\n\nDownload\n--------\nGradle:\n```groovy\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\ndependencies {\n    compile 'com.github.allan1st:JellyRefreshLayout:2.0'\n}\n```\nor Maven\n```xml\n\u003crepository\u003e\n\t\u003cid\u003ejitpack.io\u003c/id\u003e\n\t\u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.allan1st\u003c/groupId\u003e\n    \u003cartifactId\u003eJellyRefreshLayout\u003c/artifactId\u003e\n    \u003cversion\u003e2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n--------\nWrap any RecyclerView/ScrollView/ListView with JellyRefreshLayout\n\n```xml\n\u003cuk.co.imallan.jellyrefresh.JellyRefreshLayout\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:text=\"@string/your_loading_text\"\n    android:textColor=\"@color/your_loading_text_color\"\n    app:jellyColor=\"@color/your_jelly_color\"\n    app:pullHeight=\"128dp\"\n    app:triggerHeight=\"96dp\"\n    app:headerHeight=\"56dp\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\u003e\n\n    \u003cListView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"/\u003e\n    \n\u003c/uk.co.imallan.jellyrefresh.JellyRefreshLayout\u003e\n```\n\nCall back when triggering refresh:\n```java\nmJellyLayout.setRefreshListener(new JellyRefreshLayout.JellyRefreshListener() {\n    @Override\n    public void onRefresh(final JellyRefreshLayout jellyRefreshLayout) {\n        // your code here\n    }\n});\n```\nand finish refreshing when you are done:\n```java\nmJellyLayout.setRefreshing(false); // true to start refreshing programmatically\n```\n\nYou can also find more usages in the sample app included\n\nLicense\n--------\n    The MIT License (MIT)\n\n    Copyright (c) 2015 Yilun Chen\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","funding_links":[],"categories":["Java","下拉刷新"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimallan%2FJellyRefreshLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimallan%2FJellyRefreshLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimallan%2FJellyRefreshLayout/lists"}