{"id":13641389,"url":"https://github.com/lumenghz/PullToRefresh","last_synced_at":"2025-04-20T07:33:20.066Z","repository":{"id":133328939,"uuid":"61342578","full_name":"lumenghz/PullToRefresh","owner":"lumenghz","description":"A PullToRefresh widget.","archived":true,"fork":false,"pushed_at":"2017-04-09T15:03:22.000Z","size":4273,"stargazers_count":508,"open_issues_count":1,"forks_count":77,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-04T00:04:47.916Z","etag":null,"topics":["android","pulltorefresh"],"latest_commit_sha":null,"homepage":"","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/lumenghz.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}},"created_at":"2016-06-17T03:20:31.000Z","updated_at":"2024-08-04T00:04:47.916Z","dependencies_parsed_at":"2024-01-14T11:07:10.823Z","dependency_job_id":"59998087-7865-4707-928e-985aff24fdc7","html_url":"https://github.com/lumenghz/PullToRefresh","commit_stats":null,"previous_names":["lubeast/pulltorefresh"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenghz%2FPullToRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenghz%2FPullToRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenghz%2FPullToRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lumenghz%2FPullToRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lumenghz","download_url":"https://codeload.github.com/lumenghz/PullToRefresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223822296,"owners_count":17208837,"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":["android","pulltorefresh"],"created_at":"2024-08-02T01:01:20.345Z","updated_at":"2024-11-09T11:31:22.525Z","avatar_url":"https://github.com/lumenghz.png","language":"Java","readme":"## PullLaunchRocket\n\n[中文文档](./README_CHN.md)\n\n[![License](https://img.shields.io/github/license/lubeast/PullLaunchRocket.svg?style=flat-square)](https://github.com/lubeast/PullLaunchRocket/blob/master/LICENSE)\n[![Travis](https://img.shields.io/travis/lubeast/PullToRefresh/master.svg?style=flat-square)](https://travis-ci.org/lubeast/PullToRefresh)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PullToRefresh-brightgreen.svg?style=flat-square)](https://android-arsenal.com/details/1/3943)\n[![Github Issues](https://img.shields.io/github/issues/lubeast/PullLaunchRocket.svg?style=flat-square)](https://github.com/lubeast/PullToRefresh/issues)\n\nYou guys can see [another project](https://github.com/lubeast/AlphaLayout) depends on this one.\n\nThanks to [Yalantis](https://github.com/Yalantis) for creating a great logic of `PullToRefresh`. And that's logic is the fundation of `PullLaunchRocket` also.\n\nGive me a `Star` please :D  And welcome to contact me or make a PR if you have any good style, we make it better together.\n\nWe use Launch-Rocket as our default style.\n\n![rocket](https://raw.github.com/lubeast/PullLaunchRocket/master/screenshots/rocket.gif)\n\nAnd also, we provided a custom refresh style - sunrise\n\n![rocket](https://raw.github.com/lubeast/PullLaunchRocket/master/screenshots/sunraise.gif)\n\n**Attention : **\nversion 1.0.2 is just a pre-release.\n\n### Usage\n*You can have a look at Sample Project* `sample` for better use.\n- Add it in your root `build.gradle` at the end of repositories:\n```groovy\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n```\n\n- Add the dependency in your module-level `build.gradle`\n```groovy\ndependencies {\n    compile 'com.github.lubeast:PullToRefresh:1.0.2'\n}\n```\n\n- `PullToRefreshView` widget in your layout.xml\n```xml\n\u003clumenghz.com.pullrefresh.PullToRefreshView\n        android:id=\"@+id/pull_to_refresh\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:lrefresh=\"rocket\"\n        \u003e\n\n        \u003cListView\n            android:id=\"@+id/list_view\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:divider=\"@null\"\n            android:dividerHeight=\"0dp\"\n            android:fadingEdge=\"none\"\n            /\u003e\n\n\u003c/lumenghz.com.pullrefresh.PullToRefreshView\u003e\n```\n\n- Initial the `PullToRefreshView` and setup `OnRefreshListener` in your `onCreate` method\n```java\nmPullToRefreshView.setOnRefreshListener(new PullToRefreshView.OnRefreshListener() {\n    @Override\n    public void onRefresh() {\n        mPullToRefreshView.postDelayed(new Runnable() {\n            @Override\n            public void run() {\n                mPullToRefreshView.setRefreshing(false);\n            }\n        }, REFRESH_DELAY);\n    }\n });\n```\n\n- You can change refresh state through call\n```java\nmPullToRefreshView.setRefreshing(boolean isRefreshing)\n```\n","funding_links":[],"categories":["下拉刷新"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumenghz%2FPullToRefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumenghz%2FPullToRefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumenghz%2FPullToRefresh/lists"}