{"id":13832103,"url":"https://github.com/johannilsson/android-pulltorefresh","last_synced_at":"2025-07-09T16:33:58.613Z","repository":{"id":1293586,"uuid":"1234896","full_name":"johannilsson/android-pulltorefresh","owner":"johannilsson","description":"DEPRECATED This project aims to provide a reusable pull to refresh widget for Android.","archived":false,"fork":false,"pushed_at":"2020-10-01T14:08:43.000Z","size":1491,"stargazers_count":2471,"open_issues_count":39,"forks_count":1031,"subscribers_count":228,"default_branch":"master","last_synced_at":"2024-08-05T10:20:09.363Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johannilsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-09T11:12:41.000Z","updated_at":"2024-04-07T08:43:09.000Z","dependencies_parsed_at":"2022-08-16T13:00:18.346Z","dependency_job_id":null,"html_url":"https://github.com/johannilsson/android-pulltorefresh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannilsson%2Fandroid-pulltorefresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannilsson%2Fandroid-pulltorefresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannilsson%2Fandroid-pulltorefresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannilsson%2Fandroid-pulltorefresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johannilsson","download_url":"https://codeload.github.com/johannilsson/android-pulltorefresh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225575170,"owners_count":17490711,"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-04T10:01:51.183Z","updated_at":"2024-11-20T14:30:26.703Z","avatar_url":"https://github.com/johannilsson.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# Pull To Refresh for Android\n\n**Note** This library is deprecated, a swipe refresh layout is available in the [v4 support library](https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html).\n\n---\n\nThis project aims to provide a reusable pull to refresh widget for Android.\n\n![Screenshot](https://github.com/johannilsson/android-pulltorefresh/raw/master/android-pull-to-refresh.png)\n\nRepository at \u003chttps://github.com/johannilsson/android-pulltorefresh\u003e.\n\n## Usage\n\n### Layout\n\n``` xml\n\u003c!--\n  The PullToRefreshListView replaces a standard ListView widget.\n--\u003e\n\u003ccom.markupartist.android.widget.PullToRefreshListView\n    android:id=\"@+id/android:list\"\n    android:layout_height=\"fill_parent\"\n    android:layout_width=\"fill_parent\"\n    /\u003e\n```\n\n### Activity\n\n``` java\n// Set a listener to be invoked when the list should be refreshed.\n((PullToRefreshListView) getListView()).setOnRefreshListener(new OnRefreshListener() {\n    @Override\n    public void onRefresh() {\n        // Do work to refresh the list here.\n        new GetDataTask().execute();\n    }\n});\n\nprivate class GetDataTask extends AsyncTask\u003cVoid, Void, String[]\u003e {\n    ...\n    @Override\n    protected void onPostExecute(String[] result) {\n        mListItems.addFirst(\"Added after refresh...\");\n        // Call onRefreshComplete when the list has been refreshed.\n        ((PullToRefreshListView) getListView()).onRefreshComplete();\n        super.onPostExecute(result);\n    }\n}\n```\n\n### Last Updated\n\nIt's possible to add a last updated time using the method `setLastUpdated`\nand `onRefreshComplete`. The text provided to these methods will be set below\nthe Release to refresh text. Note that the time representation is not validated\nreplaces the previous text, which means that it's possible and recommended to\nadd a text similar to \"Last Update: 15:23\". This might be changed in future\nversions.\n\n## 1.5 Support\n\nTo use the widget on 1.5 the necessary drawables needs to be copied to that\nprojects drawable folder. The drawables needed by the widget can be found in\nthe drawable-hdpi folder in the library project.\n\n## Contributors\n\n* [Jason Knight](http://www.synthable.com/) - \u003chttps://github.com/synthable\u003e\n* [Eddie Ringle](http://eddieringle.com/) - \u003chttps://github.com/eddieringle\u003e\n* [Christof Dorner](http://chdorner.com) - \u003chttps://github.com/chdorner\u003e\n* [Olof Brickarp](http://www.yay.se) - \u003chttps://github.com/coolof\u003e\n* [James Smith](http://loopj.com/) - \u003chttps://github.com/loopj\u003e\n* [Alex Volovoy](http://bytesharp.com/) - \u003chttps://github.com/avolovoy\u003e\n* Bo Maryniuk\n* [kidfolk](https://github.com/kidfolk)\n* [Tim Mahoney](https://github.com/timahoney)\n* [Richard Guest](https://github.com/quiffman)\n\n## Are you using this widget?\n\nIf you are using this widget please feel free to add your app to the\n[wiki](https://github.com/johannilsson/android-pulltorefresh/wiki/Apps).\n\n## License\nCopyright (c) 2011 [Johan Nilsson](http://markupartist.com)\n\nLicensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannilsson%2Fandroid-pulltorefresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohannilsson%2Fandroid-pulltorefresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannilsson%2Fandroid-pulltorefresh/lists"}