Android之RadioButton多行
2015-09-22 15:50
549 查看
RadioGroup设置orientation="vertical"竖向单列显示
RadioGroup设置orientation="horizontal"横向单行显示
如何实现多行多列RadioButton呢?
布局
哦了
RadioGroup设置orientation="horizontal"横向单行显示
如何实现多行多列RadioButton呢?
<com.hz.w504_sing_common.FlowRadioGroup android:id="@+id/radioGroup" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <LinearLayout android:layout_marginTop="10dip" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="0" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="5" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="10" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="15" /> </LinearLayout> <LinearLayout android:layout_marginTop="10dip" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="20" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="25" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="30" /> <RadioButton android:layout_width="0dip" android:layout_weight="1" android:layout_height="wrap_content" android:text="35" /> </LinearLayout> </com.hz.w504_sing_common.FlowRadioGroup>
布局
哦了
相关文章推荐
- Android samples API Demos之UI篇1(ActionBarCompat-ListPopupMenu)
- android 得到连接热点的ip的方法
- Android基础入门教程——2.4.5 ListView之checkbox错位问题解决
- android4.4以上,实现状态栏颜色设置
- 仿Android5.0 Heads-Up风格的Toast提示
- Android的Handler总结
- AndroidAnnotations常用标记
- android布局及属性
- Android Fragment 真正的完全解析(下)
- Android5.1--电源管理之省电模式分析
- Android Fragment 真正的完全解析(上)
- Android 入门——项目结构目录、文件详解
- Crazy Android书中属性动画实例的完整代码及问题
- Android ffmpeg编译
- Android-项目中的XML协议封装
- Android 使用日常
- Android apk 签名
- Android手势密码
- android inflater 用法
- [Android]使用Kotlin开发Android(二)