{"id":17138386,"url":"https://github.com/dvdciri/multichoicerecyclerview","last_synced_at":"2025-04-07T12:06:16.422Z","repository":{"id":91062737,"uuid":"45111637","full_name":"dvdciri/MultiChoiceRecyclerView","owner":"dvdciri","description":"Multi choice selection applied on recycler view make life easier","archived":false,"fork":false,"pushed_at":"2018-03-29T07:34:44.000Z","size":22697,"stargazers_count":352,"open_issues_count":9,"forks_count":68,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T10:08:49.002Z","etag":null,"topics":["multi-choice-selection","multi-choice-toolbar","multichoiceadapter","recyclerview","recyclerview-adapter"],"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/dvdciri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-10-28T12:43:39.000Z","updated_at":"2024-12-30T19:02:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e23e4fb-7923-464f-8d5e-207ccdf8f55f","html_url":"https://github.com/dvdciri/MultiChoiceRecyclerView","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvdciri%2FMultiChoiceRecyclerView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvdciri%2FMultiChoiceRecyclerView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvdciri%2FMultiChoiceRecyclerView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvdciri%2FMultiChoiceRecyclerView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvdciri","download_url":"https://codeload.github.com/dvdciri/MultiChoiceRecyclerView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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":["multi-choice-selection","multi-choice-toolbar","multichoiceadapter","recyclerview","recyclerview-adapter"],"created_at":"2024-10-14T20:09:28.721Z","updated_at":"2025-04-07T12:06:16.391Z","avatar_url":"https://github.com/dvdciri.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[ ![Download](https://api.bintray.com/packages/dvd-ciri/maven/MultiChoiceRecyclerView/images/download.svg) ](https://bintray.com/dvd-ciri/maven/MultiChoiceRecyclerView/_latestVersion)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/cz.jirutka.rsql/rsql-parser/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/cz.jirutka.rsql/rsql-parser)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MultiChoiceRecyclerView-green.svg?style=true)](https://android-arsenal.com/details/1/3755)\n[![CircleCI](https://circleci.com/gh/dvdciri/MultiChoiceRecyclerView/tree/master.svg?style=shield)](https://circleci.com/gh/dvdciri/MultiChoiceRecyclerView/tree/master)\n\n# Multichoice RecyclerView\n\n## Sample\n\u003ca href='https://play.google.com/store/apps/details?id=com.davidecirillo.multichoicerecyclerview\u0026hl=en_GB\u0026utm_source=global_co\u0026utm_medium=prtnr\u0026utm_content=Mar2515\u0026utm_campaign=PartBadge\u0026pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'\u003e\u003cimg width='150' alt='Get it on Google Play' src='https://play.google.com/intl/en_gb/badges/images/generic/en_badge_web_generic.png'/\u003e\u003c/a\u003e\n\nDonwload the sample app on the Google Play Store and check out all the features\n\n\u003cimg src=\"https://raw.githubusercontent.com/dvdciri/MultiChoiceRecyclerView/master/example0.png\" width=\"170\"/\u003e \u003cimg src=\"https://raw.githubusercontent.com/dvdciri/MultiChoiceRecyclerView/master/example1.png\" width=\"170\"/\u003e \u003cimg src=\"https://raw.githubusercontent.com/dvdciri/MultiChoiceRecyclerView/master/example2.png\" width=\"170\"/\u003e \u003cimg src=\"https://raw.githubusercontent.com/dvdciri/MultiChoiceRecyclerView/master/example4.png\" width=\"170\"/\u003e\n\n## Description\nThis library make life easier when you have to deal with a multi choice selection on recycler view.\n\n## Developed by\n\n**Davide Cirillo**\n- Twitter @DvdCiri\n- GitHub @dvdciri\n- Mail dvd.ciri@gmail.com\n\nIf you want to contribute to the project feel free to Fork and create a Pull Request following the general rules for contribution: https://guides.github.com/activities/contributing-to-open-source/\n\n### Thanks for the contribution!\n- [Simon Hardt](https://github.com/hardysim)\n\n## How to use\nAdd the library as dependency\n```java\n    repositories {\n        jcenter()\n    }\n    ...\n\n    dependencies {\n        compile 'com.davidecirillo.multichoicerecyclerview:multichoicerecyclerview:2.3.0'\n    }\n```\n\nExtend your adapter to the MultiChoiceAdapter and add it to the RecyclerView as per normal usage\n```java\n    public class MyAdapter extends MultiChoiceAdapter\u003cMyViewHolder\u003e {\n\n        public MyAdapter(ArrayList\u003cString\u003e stringList, Context context) {\n            this.mList = stringList;\n            this.mContext = context;\n        }\n\n         @Override\n         public void onBindViewHolder(MySampleToolbarViewHolder holder, int position) {\n            super.onBindViewHolder(holder, position);\n\n            /*\n                Don't use View.OnClickListener on the \"holder.itemView\", override defaultItemViewClickListener(...) instead\n            */\n            ...\n         }\n    }\n```\n\n```java\n    MyAdapter myAdapter = new MyAdapter(mList, context);\n    mMultiChoiceRecyclerView.setAdapter(myAdapter);\n```\n\n**N.B.**\n- Do not forget to call **super.onBindViewHolder(holder, position);** when binding the view holder\n\nCustomize the activation or deactivation just overriding the setActive(View rootView, boolean state) method of the MultiChoiceAdapter\n```java\n    @Override\n    public void setActive(View rootView, boolean state) {\n\n        //Use View.findViewById(int id) to look for your view in the rootView\n\n        if(state){\n            //Apply your changes\n        }else{\n            //Reset your changes\n        }\n    }\n```\n\n## Features\n[Sample features](https://github.com/dvdciri/MultiChoiceRecyclerView/blob/master/FEATURES.md)\n\n## Changelog\n[Changelog file](https://github.com/dvdciri/MultiChoiceRecyclerView/blob/master/CHANGELOG.md)\n\n## License\n```\n    Copyright (c) 2014 Davide Cirillo\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    Come on, don't tell me you read that.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvdciri%2Fmultichoicerecyclerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvdciri%2Fmultichoicerecyclerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvdciri%2Fmultichoicerecyclerview/lists"}