# SelectCustom **Repository Path**: simon_pub/SelectCustom ## Basic Information - **Project Name**: SelectCustom - **Description**: 自由单选、复选按钮效果+样式美化 - **Primary Language**: Android - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-08 - **Last Updated**: 2025-04-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SelectCustom ![platform](https://img.shields.io/badge/platform-Android-lightgrey.svg) ![Gradle](https://img.shields.io/badge/Gradle-3.1.2-brightgreen.svg) ![ide](https://img.shields.io/badge/IDE-Android%20Studio-brightgreen.svg) ![progress](http://progressed.io/bar/100?title=completed) [![last commit](https://img.shields.io/github/last-commit/ahuyangdong/SelectCustom.svg)](https://github.com/ahuyangdong/GitHubSearch/commits/master) ![repo size](https://img.shields.io/github/repo-size/ahuyangdong/SelectCustom.svg) [![Licence](https://img.shields.io/github/license/ahuyangdong/SelectCustom.svg)](https://github.com/ahuyangdong/SelectCustom/blob/master/LICENSE) Android实现自由单选、复选按钮效果+样式美化,用CheckBox+LinearLayout来实现一种多行单选按钮组的效果,演示效果: ![image](https://github.com/ahuyangdong/SelectCustom/raw/master/images/demo.gif) ## 功能 1. 多行单选按钮组 2. 多行复选按钮组 3. 获取单选值 4. 获取复选值 ## 封装的方法 获取单项按钮组的值 > com.dommy.selectcustom.util.CommonUtil.getOne() 获取多选按钮组的值 > com.dommy.selectcustom.util.CommonUtil.getMany() 选中某个单选按钮 > com.dommy.selectcustom.util.CommonUtil.checkOne() 选中若干多选按钮 > com.dommy.selectcustom.util.CommonUtil.checkMany() ## 讲解参见 https://blog.csdn.net/ahuyangdong/article/details/82691961