{"id":20958511,"url":"https://github.com/junixapp/xrefreshlayout","last_synced_at":"2025-05-14T06:32:19.635Z","repository":{"id":108525072,"uuid":"87085579","full_name":"junixapp/XRefreshLayout","owner":"junixapp","description":"【已过时，不再更新，请使用更强大的SmartRefreshLayout！】A refresh layout(无侵入下拉刷新和加载布局), can refresh RecyclerView for all LayoutManager, NestedScrollView。","archived":false,"fork":false,"pushed_at":"2019-02-01T03:46:03.000Z","size":9987,"stargazers_count":127,"open_issues_count":2,"forks_count":27,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T14:02:13.102Z","etag":null,"topics":["pull-to-refresh","pulltorefresh","recyclerview","refreshlayout","refreshrecyclerview"],"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/junixapp.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-04-03T14:48:18.000Z","updated_at":"2024-05-31T16:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d905fcf-832d-448e-bb2b-f095c7d8af15","html_url":"https://github.com/junixapp/XRefreshLayout","commit_stats":null,"previous_names":["junixapp/xrefreshlayout"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FXRefreshLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FXRefreshLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FXRefreshLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FXRefreshLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junixapp","download_url":"https://codeload.github.com/junixapp/XRefreshLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084691,"owners_count":22011922,"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":["pull-to-refresh","pulltorefresh","recyclerview","refreshlayout","refreshrecyclerview"],"created_at":"2024-11-19T01:47:57.427Z","updated_at":"2025-05-14T06:32:14.627Z","avatar_url":"https://github.com/junixapp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XRefreshLayout\nA refresh layout, can refresh RecyclerView for all LayoutManager, NestedScrollView and Any View that implements NestedScrollChild !\n\n\n\n# Feature\n\n- support RecyclerView for all LayoutManager in vertical orientation !\n- support NestedScrollView !\n- support any view that implements NestedScrollChild !\n- support custom refresh header and footer , which means you can make you wanderful animation !\n- not support ListView, GridView, ScrollView !\n\n\n\n# Screenshot\n\n- refresh RecyclerView for StaggeredGridLayoutManager ：\n\n  ![staggered](/Screenshot/staggered.gif)\n\n- refresh RecyclerView for GridLayoutManager ：\n\n  ![grid](/Screenshot/grid.gif)\n\n- refresh RecyclerView for LinearLayoutManager ：\n\n  ![linear](/Screenshot/linear.gif)\n\n- refresh NestedScrollView ：\n\n  ![nestedscroll](/Screenshot/nestedscroll.gif)\n\n\n\n\n- custom refresh animation! There is two animation style now, I will support more animation in future...\n\n  ![custom_anim](/Screenshot/custom_anim.gif)\n\n\n\n\n\n# Gradle\n```groovy\ndependencies {\n\tcompile 'com.lxj:xrefreshlayout:0.0.1'\n}\n```\n\n\n\n\n\n# Get Start\n\n- make your layout\n\n  ```xml\n  \u003ccom.lxj.xrefreshlayout.XRefreshLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n      android:layout_width=\"match_parent\"\n      android:id=\"@+id/xrefreshLayout\"\n      android:layout_height=\"match_parent\"\u003e\n\n      \u003candroid.support.v7.widget.RecyclerView\n          android:id=\"@+id/recyclerview\"\n          android:layout_width=\"match_parent\"\n          android:layout_height=\"match_parent\"/\u003e\n\n  \u003c/com.lxj.xrefreshlayout.XRefreshLayout\u003e\n  ```\n\n  或者\n\n  ```xml\n  \u003ccom.lxj.xrefreshlayout.XRefreshLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n      android:layout_width=\"match_parent\"\n      android:id=\"@+id/xrefreshLayout\"\n      android:layout_height=\"match_parent\"\u003e\n\n      \u003candroid.support.v4.widget.NestedScrollView\n          android:id=\"@+id/recyclerview\"\n          android:layout_width=\"match_parent\"\n          android:layout_height=\"match_parent\"/\u003e\n\n  \u003c/com.lxj.xrefreshlayout.XRefreshLayout\u003e\n  ```\n\n  ​\n\n- set refresh listener\n\n  ```java\n  xrefreshLayout.setOnRefreshListener(new XRefreshLayout.OnRefreshListener() {\n              @Override\n              public void onRefresh() {\n              }\n\n              @Override\n              public void onLoadMore() {\n              }\n          });\n  ```\n\n- finish refresh\n\n  ```java\n  xrefreshLayout.completeRefresh();\n  ```\n\n- set custom loadinglayout\n\n  ```java\n  //you can see the DefaultLoadingLayout for some help.\n  xrefreshLayout.setLoadingLayout(...);\n  ```\n\n  ​","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunixapp%2Fxrefreshlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunixapp%2Fxrefreshlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunixapp%2Fxrefreshlayout/lists"}