Skip to content

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

License

Notifications You must be signed in to change notification settings

992480014qq/SelectCustom

 
 

Repository files navigation

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实现自由单选、复选按钮效果+样式美化

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%