{"id":15578360,"url":"https://github.com/jbvincey/nestedradiobutton","last_synced_at":"2025-08-17T13:10:10.002Z","repository":{"id":57720401,"uuid":"124775013","full_name":"jbvincey/NestedRadioButton","owner":"jbvincey","description":"An implementation of RadioButton and RadioGroup allowing to have radio buttons any layout level under a radiogroup.","archived":false,"fork":false,"pushed_at":"2021-04-21T13:28:09.000Z","size":710,"stargazers_count":64,"open_issues_count":4,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T02:08:12.723Z","etag":null,"topics":["android","android-app","android-library","android-ui"],"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/jbvincey.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":"2018-03-11T16:17:50.000Z","updated_at":"2023-05-03T02:48:06.000Z","dependencies_parsed_at":"2022-09-02T13:10:39.511Z","dependency_job_id":null,"html_url":"https://github.com/jbvincey/NestedRadioButton","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/jbvincey%2FNestedRadioButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbvincey%2FNestedRadioButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbvincey%2FNestedRadioButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbvincey%2FNestedRadioButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbvincey","download_url":"https://codeload.github.com/jbvincey/NestedRadioButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546081,"owners_count":21448260,"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":["android","android-app","android-library","android-ui"],"created_at":"2024-10-02T19:09:37.709Z","updated_at":"2025-04-24T02:08:19.418Z","avatar_url":"https://github.com/jbvincey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central release](https://img.shields.io/badge/MavenCentral-1.1-blue.svg?style=flat)](https://s01.oss.sonatype.org/service/local/repositories/releases/content/com/github/jbvincey/nestedradiobutton/1.1/)\n[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)\n\nNestedRadioButton\n=======\n\nNestedRadioButton lets you have any number of ViewGroup intermediates between your RadioButton and RadioGroup. This allows to embed your RadioButton in more complex selectable views (examples in sample). \n\n![NestedRadioButton overview](assets/nestedradiobutton_sample.png)\n\n## Install\n\nNestedRadioButton is available on **Maven Central**. To use in your project, simply add the following dependency to your app:\n```gradle\ndependencies {\n    ...\n    implementation 'com.github.jbvincey:nestedradiobutton:1.1'\n    ...\n}\n```\n\n#### Warning\n\nNestedRadioButton used to be available on **JCenter** under the package name `com.jbvincey:nestedradiobutton`. Due to **JCenter** shutdown, the NestedRadioButton library has been migrated to **Maven Central** with a different package name `com.github.jbvincey:nestedradiobutton`. If you were pulling the NestedRadioButton library from **JCenter**, make sure to add **Maven Central** repository in your configuration and to update the package name of NestedRadioButton library.\n\n## Usage\n\n```xml\n\u003ccom.jbvincey.nestedradiobutton.NestedLinearRadioGroup\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:checkedButton=\"@+id/radioButton1\"\u003e\n\n    \u003cLinearLayout\n        android:id=\"@+id/l1\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\u003e\n\n        \u003ccom.jbvincey.nestedradiobutton.NestedRadioButton\n            android:id=\"@+id/radioButton1\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            app:clickableParent=\"@+id/l1\" /\u003e\n...\n\n```\n\nIn your layout, use one of the 4 nested ViewGroup implementation among :\n * `NestedLinearRadioGroup`\n * `NestedConstraintRadioGroup`\n * `NestedRelativeRadioGroup`\n * `NestedFrameRadioGroup`\n \nThen you can use `NestedRadioButton` at any hierarchy level under your nested ViewGroup. \n\nThe `app:checkedButton` attribute in the nested ViewGroup allows to define the radio button checked by default in your layout. The `app:clickableParent` attribute in NestedRadioButton lets you define a parent ViewGroup that will check the RadioButton on click to this ViewGroup.\n\n## Contributors\n\nJean-Baptiste VINCEY, jbvincey@gmail.com\n\n\nLicense\n=======\n\n    Copyright 2018 Jean-Baptiste VINCEY.\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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbvincey%2Fnestedradiobutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbvincey%2Fnestedradiobutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbvincey%2Fnestedradiobutton/lists"}