{"id":13642699,"url":"https://github.com/zaihuishou/ExpandableRecyclerview","last_synced_at":"2025-04-20T20:32:27.172Z","repository":{"id":41067039,"uuid":"63029073","full_name":"zaihuishou/ExpandableRecyclerview","owner":"zaihuishou","description":"An ExpandableRecycleradapter with Recyclerview","archived":false,"fork":false,"pushed_at":"2016-11-21T03:32:51.000Z","size":7711,"stargazers_count":1051,"open_issues_count":1,"forks_count":146,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-04T07:05:33.151Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaihuishou.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":"2016-07-11T02:05:39.000Z","updated_at":"2025-03-01T09:12:02.000Z","dependencies_parsed_at":"2022-09-09T19:11:01.447Z","dependency_job_id":null,"html_url":"https://github.com/zaihuishou/ExpandableRecyclerview","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/zaihuishou%2FExpandableRecyclerview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaihuishou%2FExpandableRecyclerview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaihuishou%2FExpandableRecyclerview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaihuishou%2FExpandableRecyclerview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaihuishou","download_url":"https://codeload.github.com/zaihuishou/ExpandableRecyclerview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249958885,"owners_count":21351732,"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:35.210Z","updated_at":"2025-04-20T20:32:26.509Z","avatar_url":"https://github.com/zaihuishou.png","language":"Java","funding_links":[],"categories":["RecyclerView"],"sub_categories":[],"readme":"# ExpandableRecyclerview\nAn ExpandableRecycleradapter with Recyclerview\n\n#Screenshots\n![effict](/sample-screen.gif)\n  \n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ExpandableRecyclerview-green.svg?style=true)](https://android-arsenal.com/details/1/3903)\n\n##Gradle\n ```\n compile 'com.zaihuishou:expandablerecycleradapter:1.0.3'\n ```\n \n##Maven\n \n ```\n \u003cdependency\u003e\n   \u003cgroupId\u003ecom.zaihuishou\u003c/groupId\u003e\n   \u003cartifactId\u003eexpandablerecycleradapter\u003c/artifactId\u003e\n   \u003cversion\u003e1.0.3\u003c/version\u003e\n   \u003ctype\u003epom\u003c/type\u003e\n \u003c/dependency\u003e\n ```\n \n#How to use\n\n* Expandable item:\u003c/br\u003e\n  \n    data model class must `implement` [ExpandableListItem](https://github.com/zaihuishou/ExpandableRecyclerview/blob/master/expandablerecycleradapter/src/main/java/com/zaihuishou/expandablerecycleradapter/model/ExpandableListItem.java),and viewholder class must `extend` [AbstractExpandableAdapterItem](https://github.com/zaihuishou/ExpandableRecyclerview/blob/master/expandablerecycleradapter/src/main/java/com/zaihuishou/expandablerecycleradapter/viewholder/AbstractExpandableAdapterItem.java)\n    \n       example:`public class Company implements ExpandableListItem` and `public class CompanyItem AbstractExpandableAdapterItem`\n   \n* Normal item\u003c/br\u003e\n\n   viewholder `extend` [AbstractAdapterItem](https://github.com/zaihuishou/ExpandableRecyclerview/blob/master/expandablerecycleradapter/src/main/java/com/zaihuishou/expandablerecycleradapter/viewholder/AbstractAdapterItem.java)\u003c/br\u003e\n   \n\n   example:`public class EmployeeItem extends AbstractAdapterItem`\n   \n* Implement [BaseExpandableAdapter](https://github.com/zaihuishou/ExpandableRecyclerview/blob/master/expandablerecycleradapter/src/main/java/com/zaihuishou/expandablerecycleradapter/adapter/BaseExpandableAdapter.java)\n    \n```\n  mBaseExpandableAdapter = new BaseExpandableAdapter(mCompanylist) {\n            @NonNull\n            @Override\n            public AbstractAdapterItem\u003cObject\u003e getItemView(Object type) {\n               \n                return null;\n            }\n\n            @Override\n            public Object getItemViewType(Object t) {\n               \n                return -1;\n            }\n        };\n```\n * For all details, please check demo\n \n#Databinding Use\n* If you want to use this with databinding,please check [ExpandableRecyclerview-Databinding](https://github.com/zaihuishou/ExpandableRecyclerview-Databinding) \n \n#Thanks\n* [bignerdranch/expandable-recycler-view](https://github.com/bignerdranch/expandable-recycler-view)\n* [zaihuishou/RcvAdapter](https://github.com/zaihuishou/RcvAdapter)\n \n##License\n \n ```\n Copyright 2016 zaihuishou\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 \nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressor implied.See the License for the specific language governing permissions and limitations under the License.\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaihuishou%2FExpandableRecyclerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaihuishou%2FExpandableRecyclerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaihuishou%2FExpandableRecyclerview/lists"}