{"id":15027028,"url":"https://github.com/yalantis/phoenix","last_synced_at":"2025-05-14T11:13:04.948Z","repository":{"id":25701916,"uuid":"29138379","full_name":"Yalantis/Phoenix","owner":"Yalantis","description":"Phoenix Pull-to-Refresh","archived":false,"fork":false,"pushed_at":"2022-09-22T09:40:03.000Z","size":663,"stargazers_count":4003,"open_issues_count":15,"forks_count":916,"subscribers_count":197,"default_branch":"master","last_synced_at":"2025-04-11T04:56:15.762Z","etag":null,"topics":["android","animation","java","listview","pull-to-refresh"],"latest_commit_sha":null,"homepage":"https://yalantis.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yalantis.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-01-12T14:11:20.000Z","updated_at":"2025-04-08T12:53:50.000Z","dependencies_parsed_at":"2022-08-30T06:11:28.471Z","dependency_job_id":null,"html_url":"https://github.com/Yalantis/Phoenix","commit_stats":null,"previous_names":["yalantis/pull-to-refresh.rentals-android"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FPhoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FPhoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FPhoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yalantis%2FPhoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yalantis","download_url":"https://codeload.github.com/Yalantis/Phoenix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129527,"owners_count":22019628,"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","animation","java","listview","pull-to-refresh"],"created_at":"2024-09-24T20:05:38.726Z","updated_at":"2025-05-14T11:13:04.899Z","avatar_url":"https://github.com/Yalantis.png","language":"Java","readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Phoenix-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1386) [![Yalantis](https://github.com/Yalantis/Phoenix/blob/master/badge.png)](https://yalantis.com/?utm_source=github)\n\n# Phoenix Pull-to-Refresh\n\n#### This project aims to provide a simple and customizable pull to refresh implementation. Made in [Yalantis] (https://yalantis.com/?utm_source=github)\n\nCheck this [project on Dribbble] (https://dribbble.com/shots/1650317-Pull-to-Refresh-Rentals)  \nCheck this [project on Behance] (https://www.behance.net/gallery/20411445/Mobile-Animations-Interactions)  \n\n\u003cimg src=\"https://d13yacurqjgara.cloudfront.net/users/125056/screenshots/1650317/realestate-pull_1-2-3.gif\" alt=\"alt text\" style=\"width:200;height:200\"\u003e\n\n#Usage\n\n*For a working implementation, Have a look at the Sample Project - sample*\n\n1. Include the library as local library project.\n\n    ``` compile 'com.yalantis:phoenix:1.2.3' ```\n\n2. Include the PullToRefreshView widget in your layout.\n\n\t```xml\n    \u003ccom.yalantis.phoenix.PullToRefreshView\n        android:id=\"@+id/pull_to_refresh\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n\n        \u003cListView\n            android:id=\"@+id/list_view\"\n            android:divider=\"@null\"\n            android:dividerHeight=\"0dp\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\" /\u003e\n\n    \u003c/com.yalantis.phoenix.PullToRefreshView\u003e\n    ```\n\n3. In your `onCreate` method refer to the View and setup OnRefreshListener.\n\t```java\n    mPullToRefreshView = (PullToRefreshView) findViewById(R.id.pull_to_refresh);\n    mPullToRefreshView.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#Customization\n\nTo customize drawables you can change:\n   * sun.png - Sun image\n   * sky.png - background image\n   * buildings.png - foreground image\n\n# Misc\nIf you need to change progress state:\n```java\n\tmPullToRefreshView.setRefreshing(boolean isRefreshing)\n```\n#Compatibility\n  \n  * Android GINGERBREAD 2.3+\n  \n# Changelog\n\n### Version: 1.2\n\n  * Sample updated with RecyclerView example\n  * Showing the refresh view just in it's bounds. (Issue with transparent / empty ListView)\n  * Possibility to set refresh view padding\n\n### Version: 1.0\n\n  * Initial Build\n\n#### Let us know!\n\nWe’d be really happy if you sent us links to your projects where you use our component. Just send an email to github@yalantis.com And do let us know if you have any questions or suggestion regarding the animation. \n\nP.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for Android (iOS) better than better. Stay tuned!\n\n## License\n\n    Copyright 2017, Yalantis\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalantis%2Fphoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyalantis%2Fphoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyalantis%2Fphoenix/lists"}