{"id":13989527,"url":"https://github.com/recruit-lifestyle/BeerSwipeRefresh","last_synced_at":"2025-07-22T11:30:35.359Z","repository":{"id":35081304,"uuid":"39236131","full_name":"recruit-lifestyle/BeerSwipeRefresh","owner":"recruit-lifestyle","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-18T08:32:48.000Z","size":8584,"stargazers_count":395,"open_issues_count":2,"forks_count":77,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-07-05T10:45:33.966Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://engineer.recruit-lifestyle.co.jp/techblog/2015-07-29-beer-swipe-refresh-layout/","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/recruit-lifestyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-17T05:14:33.000Z","updated_at":"2025-05-02T16:34:30.000Z","dependencies_parsed_at":"2022-08-17T22:31:17.481Z","dependency_job_id":null,"html_url":"https://github.com/recruit-lifestyle/BeerSwipeRefresh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/recruit-lifestyle/BeerSwipeRefresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recruit-lifestyle%2FBeerSwipeRefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recruit-lifestyle%2FBeerSwipeRefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recruit-lifestyle%2FBeerSwipeRefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recruit-lifestyle%2FBeerSwipeRefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recruit-lifestyle","download_url":"https://codeload.github.com/recruit-lifestyle/BeerSwipeRefresh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recruit-lifestyle%2FBeerSwipeRefresh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483433,"owners_count":23936340,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T13:01:43.440Z","updated_at":"2025-07-22T11:30:35.076Z","avatar_url":"https://github.com/recruit-lifestyle.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# BeerSwipeRefreshLayout\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-BeerSwipeRefreshLayout-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/2228)\n[![Release](https://img.shields.io/github/release/recruit-lifestyle/BeerSwipeRefresh.svg?label=maven version)](https://github.com/recruit-lifestyle/BeerSwipeRefresh)\n[![License](https://img.shields.io/hexpm/l/plug.svg)]()  \nThis project aims to provide a reusable Swipe to Refresh widget for Android.\n\n\n##Screenshots\n*Watch YouTube video [here](https://www.youtube.com/watch?v=ZIBP56GboX0).*  \n![](./sc/animation_beer.gif)  \n\u003cimg src=\"./sc/sc1.png\" width=\"200\"\u003e\n\u003cimg src=\"./sc/sc2.png\" width=\"200\"\u003e\n\u003cimg src=\"./sc/sc3.png\" width=\"200\"\u003e\n\n## Requirements\nTarget Sdk Version : 21  \nMin Sdk Version : 19  \n\n##How to use\n1) Add this to your **build.gradle**.\n```java\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n\ndependencies {\n  compile 'com.github.recruit-lifestyle:BeerSwipeRefresh:1.1'\n}\n```  \n\n2) Add  ```java com.list.view.amyu.beerswiperefreshlayout.BeerSwipeRefreshLayout``` , which has at least one AbsListView, to your layout XML file.\n```java\n\u003cjp.co.recruit_lifestyle.android.widget.BeerSwipeRefreshLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:id=\"@+id/main_swipe\"\u003e\n\n      \u003cListView\n          android:id=\"@+id/main_list\"\n          android:layout_width=\"match_parent\"\n          android:layout_height=\"match_parent\"/\u003e\n\n\u003c/jp.co.recruit_lifestyle.android.widget.BeerSwipeRefreshLayout\u003e\n```  \n\n3) Add the function so that the your application knows when a user has completed a 'BeerSwipeRefreshLayout'.\n```java\nmBeerSwipeRefreshLayout = (BeerSwipeRefreshLayout) findViewById(R.id.main_swipe);\nmBeerSwipeRefreshLayout.setOnRefreshListener(new BeerSwipeRefreshLayout.OnRefreshListener() {\n  @Override public void onRefresh() {\n    // Do work to refresh the list here.\n    new Task().execute();\n  }\n});\n\nprivate class Task extends AsyncTask\u003cVoid, Void, String[]\u003e {\n  ...\n  @Override protected void onPostExecute(String[] result) {\n    // Call setRefreshing(false) when the list has been refreshed.\n    mBeerSwipeRefreshLayout.setRefreshing(false);\n    super.onPostExecute(result);\n  }\n}\n```\n\n## Credits\n\nBeerSwipeRefreshLayout is owned and maintained by [RECRUIT LIFESTYLE CO., LTD.](http://www.recruit-lifestyle.co.jp/)\n\nBeerSwipeRefreshLayout was originally created by [Yuki Mima](https://github.com/amyu)  \n\n\n##License\n\n    Copyright 2015 RECRUIT LIFESTYLE CO., LTD.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecruit-lifestyle%2FBeerSwipeRefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecruit-lifestyle%2FBeerSwipeRefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecruit-lifestyle%2FBeerSwipeRefresh/lists"}