如上图所示,
这个问题弄得我不知所措,而且时有时无,不知各位有碰到这种情况的没有。。

解决方案 »

  1.   

    代码都是平常的代码,我还是贴上来吧:

    <TextView 
    android:id="@+id/genderSelect"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Gender Select here:"
    />
    <RadioGroup 
    android:id="@+id/genderGroup"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <RadioButton 
    android:id="@+id/maleButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/male"
    />
    <RadioButton 
    android:layout_height="wrap_content" 
    android:text="@string/female" 
    android:layout_width="wrap_content"
    android:id="@+id/femaleButton">
    </RadioButton>

    </RadioGroup>
      

  2.   

    文字是代码写上去的还是布局上去的?
    贴一段android apiDemo上标准用法:
        <RadioGroup
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:checkedButton="@+id/lunch"
            android:id="@+id/menu">
            <RadioButton
                android:text="@string/radio_group_1_breakfast"
                android:id="@+id/breakfast"
                />
            <RadioButton
                android:text="@string/radio_group_1_lunch"
                android:id="@id/lunch" />
            <RadioButton
                android:text="@string/radio_group_1_dinner"
                android:id="@+id/dinner" />
            <RadioButton
                android:text="@string/radio_group_1_all"
                android:id="@+id/all" />
            <TextView
                android:text="@string/radio_group_1_selection"
                android:id="@+id/choice" />
        </RadioGroup>
      

  3.   

    和你的代码比起来,RadioButton标签里边根本没有android:layout_width和android:layout_height
      

  4.   

    RadioGroup 可以设置 内容啊   不要分开写成 textView
      

  5.   

    <RadioButton  
    android:id="@+id/maleButton"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/male"
    />我的和你一样的问题,加个paddingleft就可以了,如我的
         <RadioButton
                android:id="@+id/shizhiButton"
                android:checked="true"
                android:paddingLeft="35dip"
                android:text="@string/shizhiLabel" />