使用RadioGroup与RadioButton实现单选效果

2016-07-22  白云 

一、RadioGroup与RadioButton的概念

1、RadioGroup

RadioGroup是RadioButton的一个集合,提供多选一机制

2、属性

android:orientation="vertical" 垂直排布

android:orientation="horizontal" 水平排布

决定当前RadioGroup中RadioButton以什么形式排列 

二、使用RadioGroup与RadioButton

427°/4271 人阅读/0 条评论 发表评论

登录 后发表评论