Android 如何排版RadioGroup的RadioButton

 时间:2024-11-04 23:04:07

1、实际上只要我们明白在radiogroup里面我们也可以使用RelativeLayout,LinearLayout这样的布局的;首先设置radiogroup的orientation属性为vertical

Android 如何排版RadioGroup的RadioButton

2、然后再第一个radiobutton前面加上LinearLayout,orientation属性设置为horizontal,</LinearLayout>标签放在一行最后一个radiobutton后面;小编这里是 文本为“50”的那个radiobutton后面

Android 如何排版RadioGroup的RadioButtonAndroid 如何排版RadioGroup的RadioButton

3、同样的把使用LinearLayout把后面几个radiobutton包裹住,orientation属性设置为horizontal,

Android 如何排版RadioGroup的RadioButton

4、运行一下就可以发现就达到了我们想要的结果!

Android 如何排版RadioGroup的RadioButton
  • excel怎么插入纯黑色的艺术字
  • C语言入门应该注意什么
  • Word:如何将word屏幕信息设置为不显示
  • Word文档如何插入环保箭头图标
  • fireworks文件怎么存储为html文件呢?
  • 热门搜索
    超频是什么意思 迟日江山丽的全诗意思 汽车雨刮器什么牌子好 奥妙的意思 北京祝福你 精益求精的精是什么意思 祝福教案 什么是转述句举例说明 欲盖弥彰的意思 钱包用什么颜色招财