{"id":32643523,"url":"https://github.com/ykw93/constraintradiogroup","last_synced_at":"2025-10-31T03:55:25.055Z","repository":{"id":299625421,"uuid":"292267866","full_name":"YKW93/ConstraintRadioGroup","owner":"YKW93","description":"ConstraintRadioGroup","archived":false,"fork":false,"pushed_at":"2020-09-16T05:22:03.000Z","size":323,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T13:50:27.547Z","etag":null,"topics":["android","constraintlayout","constraintradiogroup","radiogroup"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/YKW93.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-02T11:47:27.000Z","updated_at":"2024-06-27T13:00:58.000Z","dependencies_parsed_at":"2025-06-17T13:50:32.245Z","dependency_job_id":"311c717a-e8cc-4eb1-a4bf-beab6b2e7af3","html_url":"https://github.com/YKW93/ConstraintRadioGroup","commit_stats":null,"previous_names":["ykw93/constraintradiogroup"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/YKW93/ConstraintRadioGroup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FConstraintRadioGroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FConstraintRadioGroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FConstraintRadioGroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FConstraintRadioGroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YKW93","download_url":"https://codeload.github.com/YKW93/ConstraintRadioGroup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YKW93%2FConstraintRadioGroup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281925789,"owners_count":26584821,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","constraintlayout","constraintradiogroup","radiogroup"],"created_at":"2025-10-31T03:54:59.597Z","updated_at":"2025-10-31T03:55:25.049Z","avatar_url":"https://github.com/YKW93.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConstraintRadioGroup\nThis is a custom RadioGroup library that inherits from ConstraintLayout. You can use ConstraintLayout attributes, easily changing text font and color for checked/unchecked statuses. RadioGroup uses CompoundButton so you can use RadioButton as well as CheckBox components.\n\n## Usage\n### Gradle\n```gradle\ndependencies {\n    implementation 'com.wayne:constraint-radiogroup:1.0.0'\n}\n```\n\n#### How to use\n* xml\n```xml\n\u003ccom.wayne.constraintradiogroup.ConstraintRadioGroup\n    android:layout_height=\"wrap_content\"\n    android:layout_width=\"match_parent\"\n    app:selected_font=\"@font/roboto_bold\"\n    app:selected_text_color=\"@android:color/holo_red_dark\"\n    app:unSelected_font=\"@font/roboto_light\"\n    app:unSelected_text_color=\"@android:color/black\"\u003e\n\n    \u003cRadioButton\n        android:checked=\"true\"\n        android:id=\"@+id/rb_text1\"\n        android:layout_height=\"wrap_content\"\n        android:layout_width=\"0dp\"\n        android:text=\"Text 1\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toStartOf=\"@+id/rb_text2\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\" /\u003e\n\n    \u003cRadioButton\n        android:id=\"@+id/rb_text2\"\n        android:layout_height=\"wrap_content\"\n        android:layout_width=\"0dp\"\n        android:text=\"Text 2\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toStartOf=\"@+id/rb_text3\"\n        app:layout_constraintStart_toEndOf=\"@+id/rb_text1\"\n        app:layout_constraintTop_toTopOf=\"parent\" /\u003e\n\n    \u003cRadioButton\n        android:id=\"@+id/rb_text3\"\n        android:layout_height=\"wrap_content\"\n        android:layout_width=\"0dp\"\n        android:text=\"Text 3\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toEndOf=\"@+id/rb_text2\"\n        app:layout_constraintTop_toTopOf=\"parent\" /\u003e\n\n\u003c/com.wayne.constraintradiogroup.ConstraintRadioGroup\u003e\n```\n*kotlin\n```kotlin\nclass MainActivity : AppCompatActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_main)\n\n        crg_custom.checkedChangeListener = object : OnCheckedChangeListener {\n            override fun onCheckedChanged(\n                group: ConstraintRadioGroup,\n                checkedButton: CompoundButton\n            ) {\n                // TODO \n                // (checkedButton as RadioButton)\n            }\n        }\n    }\n}\n```\n\n#### Attributes\n- `selected_font` (null)\n- `unSelected_font` (null)\n- `selected_text_color` (Color.BLACK) \n- `unSelected_text_color` (Color.BLACK) \n\n#### Important note while applying font\n- You must create a directory to res/value/ and place the font file within that path.\n\n## License  \n```  \nCopyright 2020 @Wayne\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou 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,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykw93%2Fconstraintradiogroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fykw93%2Fconstraintradiogroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fykw93%2Fconstraintradiogroup/lists"}