{"id":21130169,"url":"https://github.com/it-rico/ZrcListView","last_synced_at":"2025-07-09T01:32:36.825Z","repository":{"id":18378844,"uuid":"21559573","full_name":"it-rico/ZrcListView","owner":"it-rico","description":"一个顺滑又漂亮的Android下拉刷新与加载更多列表组件。","archived":false,"fork":false,"pushed_at":"2015-10-27T05:08:46.000Z","size":1306,"stargazers_count":550,"open_issues_count":19,"forks_count":235,"subscribers_count":41,"default_branch":"master","last_synced_at":"2023-12-10T14:30:36.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/zarics/ZrcListView","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/it-rico.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":"2014-07-07T06:43:17.000Z","updated_at":"2023-12-10T14:30:36.007Z","dependencies_parsed_at":"2022-08-04T23:16:19.861Z","dependency_job_id":null,"html_url":"https://github.com/it-rico/ZrcListView","commit_stats":null,"previous_names":["it-rico/zrclistview"],"tags_count":6,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-rico%2FZrcListView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-rico%2FZrcListView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-rico%2FZrcListView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/it-rico%2FZrcListView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/it-rico","download_url":"https://codeload.github.com/it-rico/ZrcListView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476373,"owners_count":17480215,"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-20T05:32:20.779Z","updated_at":"2024-11-20T05:32:29.190Z","avatar_url":"https://github.com/it-rico.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"ZrcListView\n===========\n\n一个顺滑又漂亮的Android下拉刷新与加载更多列表组件。\n\n### 根据系统自带ListView源码改造而来: ###\n    1.增加下拉刷新及滚动到底部自动加载的功能；\n    2.增加越界回弹效果；\n    2.增加自定义列表项动画的功能；\n\n### 与其他下拉刷新列表组件的不同 ###\n    1.其他下拉刷新组件的实现基本是通过动态更改Header的大小来实现的，而ZrcListView是修改了Listview的边界判断；\n    2.其他下拉刷新组件很容易在下拉刷新时变得卡顿，这是动态更改子View引起的，而ZrcListView的下拉刷新部分与滑动内容一样顺滑；\n    3.可以设置默认列表头偏移量，这使得实现透明ActionBar与ListView叠加变得很容易。\n    \n## **ZrcListView使用示例** ##\n\n设置ZrcListView相关属性\u003cbr\u003e\n```java\n// 设置下拉刷新的样式\nSimpleHeader header = new SimpleHeader(this);\nheader.setTextColor(0xff0066aa);\nheader.setCircleColor(0xff33bbee);\nlistView.setHeadable(header);\n\n// 设置加载更多的样式\nSimpleFooter footer = new SimpleFooter(this);\nfooter.setCircleColor(0xff33bbee);\nlistView.setFootable(footer);\n\n// 设置列表项出现动画\nlistView.setItemAnimForTopIn(R.anim.topitem_in);\nlistView.setItemAnimForBottomIn(R.anim.bottomitem_in);\n\n// 下拉刷新事件回调\nlistView.setOnRefreshStartListener(new OnStartListener() {\n    @Override\n    public void onStart() {\n        refresh();\n    }\n});\n\n// 加载更多事件回调\nlistView.setOnLoadMoreStartListener(new OnStartListener() {\n    @Override\n    public void onStart() {\n        loadMore();\n    }\n});\n```\n\n##Screenshots\n![Screenshot 0](https://raw.github.com/zarics/ZrcListView/master/Screenshots/0.png)\n\n![Screenshot 1](https://raw.github.com/zarics/ZrcListView/master/Screenshots/1.png)\n\n![Screenshot 2](https://raw.github.com/zarics/ZrcListView/master/Screenshots/2.png)\n\n![Screenshot 3](https://raw.github.com/zarics/ZrcListView/master/Screenshots/3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-rico%2FZrcListView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fit-rico%2FZrcListView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fit-rico%2FZrcListView/lists"}