{"id":13641238,"url":"https://github.com/race604/FlyRefresh","last_synced_at":"2025-04-20T07:32:38.705Z","repository":{"id":32837519,"uuid":"36430851","full_name":"race604/FlyRefresh","owner":"race604","description":"The implementation of https://dribbble.com/shots/2067564-Replace","archived":false,"fork":false,"pushed_at":"2016-03-14T13:15:48.000Z","size":2178,"stargazers_count":2835,"open_issues_count":5,"forks_count":545,"subscribers_count":108,"default_branch":"master","last_synced_at":"2024-08-03T01:20:53.954Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/race604.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":"2015-05-28T10:19:34.000Z","updated_at":"2024-06-27T13:02:05.000Z","dependencies_parsed_at":"2022-07-12T19:10:28.223Z","dependency_job_id":null,"html_url":"https://github.com/race604/FlyRefresh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/race604%2FFlyRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/race604%2FFlyRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/race604%2FFlyRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/race604%2FFlyRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/race604","download_url":"https://codeload.github.com/race604/FlyRefresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223822151,"owners_count":17208819,"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:19.068Z","updated_at":"2024-11-09T11:30:58.179Z","avatar_url":"https://github.com/race604.png","language":"Java","readme":"# FlyRefresh\r\nThe Android implementation of [Replace](https://dribbble.com/shots/2067564-Replace), designed by [Zee Youn](https://dribbble.com/zeeyoung).\r\nI implement this as a **FlyRefresh** layout. The content of the layout can be any `NestedScrollingChild`, such as a RecyclerView, NestedScrollView, VerticalGridView, etc.\r\nThis library can also work with `NestedScrollingParent` as parent, such as CoordinatorLayout.\r\n\r\n# How it looks\r\n![flyrefresh](./images/flyrefresh.gif)\r\n\r\n# Features\r\n* Work with all [NestedScrollingParent](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParent.html) and [NestedScrollingChild](https://developer.android.com/reference/android/support/v4/view/NestedScrollingChild.html)\r\n* Default minimize configuration for [Replace](https://dribbble.com/shots/2067564-Replace) animation\r\n* Expendable/Shrinkable header\r\n* Support custom header view\r\n* Support custom refresh animation\r\n\r\n# How to use\r\n\r\nAdd Gradle dependency:\r\n\r\n```gradle\r\ndependencies {\r\n   compile 'com.race604.flyrefresh:library:2.0.0'\r\n}\r\n```\r\n\r\nAn example of basic usage in `layout.xml`:\r\n\r\n```xml\r\n\u003ccom.race604.flyrefresh.FlyRefreshLayout\r\n  android:id=\"@+id/fly_layout\"\r\n  android:layout_width=\"match_parent\"\r\n  android:layout_height=\"match_parent\"\u003e\r\n\r\n    \u003candroid.support.v7.widget.RecyclerView\r\n      android:id=\"@+id/list\"\r\n      android:layout_width=\"match_parent\"\r\n      android:layout_height=\"match_parent\"\r\n      android:paddingTop=\"24dp\"\r\n      android:background=\"#FFFFFF\"/\u003e\r\n\u003c/com.race604.flyrefresh.FlyRefreshLayout\u003e\r\n```\r\n\r\nOr you can use `PullHeaderLayout` for more configurations, you can set custom attributes as shown below:\r\n\r\n```xml\r\n\u003cdeclare-styleable name=\"PullHeaderLayout\"\u003e\r\n    \u003c!-- hader size --\u003e\r\n    \u003cattr name=\"phl_header_height\" format=\"dimension\" /\u003e\r\n    \u003cattr name=\"phl_header_expand_height\" format=\"dimension\" /\u003e\r\n    \u003cattr name=\"phl_header_shrink_height\" format=\"dimension\" /\u003e\r\n    \u003c!-- header view id --\u003e\r\n    \u003cattr name=\"phl_header\" format=\"reference\" /\u003e\r\n    \u003c!-- content view id --\u003e\r\n    \u003cattr name=\"phl_content\" format=\"reference\" /\u003e\r\n    \u003c!-- Float action button icon --\u003e\r\n    \u003cattr name=\"phl_action\" format=\"reference\" /\u003e\r\n\u003c/declare-styleable\u003e\r\n```\r\nFor more, please turn to the source code.\r\n\r\n# License\r\n`FlyRefresh` is available under the MIT license.\r\n","funding_links":[],"categories":["下拉刷新","Java","Libs","App / Demo"],"sub_categories":["\u003cA NAME=\"App\"\u003e\u003c/A\u003eApp"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frace604%2FFlyRefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frace604%2FFlyRefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frace604%2FFlyRefresh/lists"}