如题:男生    ⊙
女生    ⊙

解决方案 »

  1.   

    据我所知 RadioButton 应该没有这个属性,你把这个RadioButton的text设为空,然后在他的前面加一个CheckedTextView可以吗?
      

  2.   

    但是RadioButton是在RadioGroup里啊,
      

  3.   

    刚才试了下,RadioGroup里不能放布局,放了之后就不是单选了
      

  4.   

    android:button="@null"  
    android:drawableRight="@android:drawable/xxxxx"  
    android:paddingLeft="30dip"  
    android:text="男生"
      

  5.   

    还有我的radiobutton是自己定义的样式,好像不可以啊,
      

  6.   

    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android" >
        <item android:drawable="@drawable/danxuan1" android:state_checked="true" android:state_enabled="true" ></item>
        
        <item android:drawable="@drawable/danxuan2" android:state_checked="false" android:state_enabled="true"></item>
    </selector>
    ===========================================================
     <style name="RadioButtonStyles" >
            <item name="android:button">@drawable/myradio</item>
        </style>
    =============================================================<RadioButton
                            android:id="@+id/onlybig"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/hello"
                            style="@style/RadioButtonStyles"
                            />
      

  7.   

    可以在FrameLayout里面添加2个Linearlayout实现
    第1个LinearLayout放置2个TextView,分别显示男生、女生
    第2个Linearlayout放置1个RadioGroup,放设置里面的RadioButton的text为空字符也可以通过TableLayout分2列实现。RadioGroup不规则布局还可参考:
    http://blog.csdn.net/aminfo/article/details/7558308
      

  8.   

    采用的8楼的就是对其的时候不好控制,要自己另加上radiobutton上的内容了
      

  9.   

    我的方法虽然有些笨,希望给你帮助
    在RadioGroup里的RadioButton中:
    1.设置android:button="@null"
    2.设置布局的左边空白处为-36dp
    3.设置@android:drawable/btn_radio右对齐
    现在RadioButton中文本在左边,按钮在右边。