{"id":21130182,"url":"https://github.com/nicolasjafelle/PagingGridView","last_synced_at":"2025-07-09T01:32:39.863Z","repository":{"id":13102809,"uuid":"15784307","full_name":"nicolasjafelle/PagingGridView","owner":"nicolasjafelle","description":"A Paging GridView with the same behavior as PagingListView.","archived":false,"fork":false,"pushed_at":"2015-09-01T01:19:35.000Z","size":304,"stargazers_count":280,"open_issues_count":4,"forks_count":69,"subscribers_count":14,"default_branch":"master","last_synced_at":"2023-11-07T15:24:16.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nicolasjafelle.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":"2014-01-10T00:49:08.000Z","updated_at":"2023-06-11T00:07:35.000Z","dependencies_parsed_at":"2022-09-26T16:20:30.746Z","dependency_job_id":null,"html_url":"https://github.com/nicolasjafelle/PagingGridView","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasjafelle%2FPagingGridView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasjafelle%2FPagingGridView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasjafelle%2FPagingGridView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasjafelle%2FPagingGridView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasjafelle","download_url":"https://codeload.github.com/nicolasjafelle/PagingGridView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476373,"owners_count":17480215,"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-11-20T05:32:21.924Z","updated_at":"2024-11-20T05:32:30.255Z","avatar_url":"https://github.com/nicolasjafelle.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"PagingGridView\n==============\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-PagingGridView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/184)\n\nPagingGridView has the ability to add more items on it like PagingListView does. Basically is a GridView with the ability to add more items on it when reaches the end of the list.\u003cbr\u003e\n\nInstructions - Maven Central\n============\n\n1. Add this library in your build.gradle:\n\n```groovy\ndependencies {\n    compile 'com.github.nicolasjafelle:paginggridview:1.0'\n}\n```\n\nInstructions 1\n============\n\n1. Clone the git repo\n2. Import the \"PagingGridView\" module into your Android-gradle project.\n3. Add \"PagingGridView\" module in your settings.gradle\n4. DONE\n\nInstructions 2 \n============\n1. Add Nicolas Jafelle's Maven repo to your build.gradle: \u003ca href=\"https://github.com/nicolasjafelle/maven-repo\"\u003eInstructions\u003c/a\u003e\n2. add this dependency: 'com.paginggridview:paging-gridview:1.0.BETA'\n3. DONE\n\n\nHow to Use it\n================\n\nSimple create your PagingAdapter and add it to com.paging.gridview.PagingGridView.\u003cbr\u003e\nYou have to implements the new Pagingable interface and its onLoadMoreItems() method. For example:\u003cbr\u003e\n``` java\ngridView.setHasMoreItems(true);\ngridView.setPagingableListener(new PagingGridView.Pagingable() {\n\t@Override\n\tpublic void onLoadMoreItems() {\n\t\tif(pager \u003c 3) {\n\t\t\tnew CountryAsyncTask(false).execute();\n\t\t}else {\n\t\t\tgridView.onFinishLoading(false, null);\n\t\t}\n\t}\n});\n```\n\nFinally you can use the onFinishLoading(boolean hasMoreItems, List newItems) method to update the list.\n``` java\ngridView.onFinishLoading(true, newItems);\n```\nAlso remember to use this package in your layout files: \n\n\t\u003ccom.paging.gridview.PagingGridView\n        \tandroid:id=\"@+id/paging_grid_view\"\n        \tandroid:layout_width=\"match_parent\"\n        \tandroid:layout_height=\"match_parent\"/\u003e\n\n\nDeveloped By\n================\n\n* Nicolas Jafelle - \u003cnicolasjafelle@gmail.com\u003e\n\n\nLicense\n================\n\n    Copyright 2014 Nicolas Jafelle\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%2Fnicolasjafelle%2FPagingGridView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasjafelle%2FPagingGridView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasjafelle%2FPagingGridView/lists"}