如何在Android中减少单选按钮的大小 [英] How to Decrease the size of radiobutton in android

查看:91
本文介绍了如何在Android中减少单选按钮的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计了一个活动,其中有两个单选按钮
但这些尺寸足够我要减小它
我使用的文字大小仅减少了文字
如果布局尺寸减小,则仅减小视图而不是单选按钮圆圈

I have designed an activity in which i have two radio button
but those size are more than enough i want to decrease it
i am using text size that decreases only text
if layout size is decrease that decrease only view not radio button circle

<RadioGroup
           android:id="@+id/RG1"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:orientation="horizontal" >

           <RadioButton
               android:id="@+id/N"
               android:layout_width="wrap_content"
               android:layout_height="70dip"
               android:text="Yes"
               android:textSize="12dip" />

           <RadioButton
               android:id="@+id/Y"
               android:layout_width="wrap_content"
               android:layout_height="70dip"
               android:checked="true"
               android:text="No"
               android:textSize="12dip" />
       </RadioGroup>

推荐答案

只需选择单选组,然后拖动您想要变小的时间
just select the radio group and then drag how long u want to make small


这篇关于如何在Android中减少单选按钮的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆