如何降低单选按钮大小的机器人 [英] how to decrease radio button size in android
本文介绍了如何降低单选按钮大小的机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们能降低单选按钮的大小,Android的??
can we decrease the size of radio button in android ??
推荐答案
据我所知单选按钮可以做,但不会像其他的EditText或TextView的。
As far as i know the radio button can be done but not like the other EditText or TextView..
试试这个code ..
Try this code..
<RadioGroup android:layout_width="fill_parent"
android:layout_height="50dp"
android:orientation="horizontal"
android:checkedButton="@+id/first">
<RadioButton android:id="@+id/first"
android:width="50dp"
android:height="50dp"
android:button="@drawable/button_radio"/>
<RadioButton android:id="@+id/second"
android:width="50dp"
android:height="50dp"
android:button="@drawable/button_radio"/>
<RadioButton android:id="@+id/third"
android:width="50dp"
android:height="50dp"
android:button="@drawable/button_radio"/>
<RadioButton android:id="@+id/fourth"
android:width="50dp"
android:height="50dp"
android:button="@drawable/button_radio"/>
</RadioGroup>
和也看看这个样品。这将帮助你很多。
And also take a look at this Sample.. This will help you alot..
这篇关于如何降低单选按钮大小的机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文