{"id":13639844,"url":"https://github.com/binaryshao/FreeRadioGroup","last_synced_at":"2025-04-20T01:32:34.700Z","repository":{"id":123945861,"uuid":"73604645","full_name":"binaryshao/FreeRadioGroup","owner":"binaryshao","description":"类似于苹果的虚拟辅助按钮，可以淡出、拖动、松手后自动贴边等","archived":false,"fork":false,"pushed_at":"2019-03-27T09:53:53.000Z","size":266,"stargazers_count":53,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T22:02:02.911Z","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/binaryshao.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}},"created_at":"2016-11-13T08:44:10.000Z","updated_at":"2024-08-02T07:31:16.000Z","dependencies_parsed_at":"2024-01-14T11:06:06.652Z","dependency_job_id":"764e6f37-1119-444a-b0d7-647260a74efd","html_url":"https://github.com/binaryshao/FreeRadioGroup","commit_stats":null,"previous_names":["sbingo/freeradiogroup"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryshao%2FFreeRadioGroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryshao%2FFreeRadioGroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryshao%2FFreeRadioGroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryshao%2FFreeRadioGroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binaryshao","download_url":"https://codeload.github.com/binaryshao/FreeRadioGroup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249838128,"owners_count":21332561,"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:05.455Z","updated_at":"2025-04-20T01:32:34.285Z","avatar_url":"https://github.com/binaryshao.png","language":"Java","readme":"demo演示：\n\n![](https://github.com/Sbingo/FreeRadioGroup/raw/master/gif/FreeRadioGroup.gif) \n\n### Description\n\n 1. This is a **moveable** RadioGroup could **fade out**, and **auto return to its parent's left or right**,   it has **no side effect** to RadioGroup's setOnCheckedChangeListener method .\n \n 2. Though it's a RadioGroup , the ideas used here make it very easy for you to custom your own View or ViewGroup which reacts in the similar way.\n\n### Usage\n\n \n\n - In your root build.gradle add:\n\n```\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n - Add the dependency\n```\ncompile 'com.github.Sbingo:FreeRadioGroup:v1.0.0'\n```\n \n - In the xml layout file:\n \n```\n \u003csbingo.freeradiogroup.FreeRadioGroup\n        android:id=\"@+id/group\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_marginRight=\"5dp\"\n        android:background=\"@drawable/black_bg\"\n        app:autoBack=\"true\"           //松手后是否自动回到父布局左侧或右侧\n        app:millisInFuture=\"2500\"     //从松手到淡出的时间\n        app:toAlpha=\"0.3\"             //淡出后的透明度值\n        app:moveable=\"true\"\u003e          //是否能拖动\n        \u003cRadioButton\n\t\t    .....\n            /\u003e\n            .\n            .\n            .\n        \u003cRadioButton\n\t\t    .....\n            /\u003e\n\u003c/sbingo.freeradiogroup.FreeRadioGroup\u003e\n\n```\n\n### If you feel it's useful, just give me a **star**, thank you~\n\n### 公众号\n![as彬哥六六六](https://s2.ax1x.com/2019/03/26/AapwMq.jpg)\n","funding_links":[],"categories":["按钮"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryshao%2FFreeRadioGroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryshao%2FFreeRadioGroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryshao%2FFreeRadioGroup/lists"}