ggjiafree / SelectCustom

Android实现自由单选、复选按钮效果+样式美化

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SelectCustom

platform Gradle ide progress last commit repo size Licence

Android实现自由单选、复选按钮效果+样式美化,用CheckBox+LinearLayout来实现一种多行单选按钮组的效果,演示效果:

image

功能

  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

About

Android实现自由单选、复选按钮效果+样式美化

License:MIT License


Languages

Language:Java 100.0%