如何设置RadioButton的字体在左边????高人指点啊

解决方案 »

  1.   

    <RelativeLayout android:id="@+id/row"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"> <TextView android:id="@+id/text1"
    android:layout_width="wrap_content" android:layout_height="30px"
    android:maxWidth="200dip" 
    android:textSize="22sp"
    android:layout_marginTop="10dip"
    android:text="第一组第一项" />

    <TextView android:id="@+id/created" android:layout_width="wrap_content"
    android:layout_height="35px" android:layout_alignParentRight="true"
    android:layout_marginLeft="10dip" 
    android:layout_marginTop="10dip"
    android:text="1999年12月3号" />

    <RadioButton 
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_toLeftOf="@id/created"
    android:id="@+id/radio"/>
    </RelativeLayout>
      

  2.   

    android:layout_toLeftOf="@id/created"//在上一个控件的左边
    android:layout_toRightOf="@id/created"//在上一个控件的右边
    android:layout_above="@id/created"//在上一个控件的上边
    android:layout_below="@id/created"//在上一个控件的下边
      

  3.   

    不好意思啊。。我刚把问题看错了。。
    你可以把RadioButton  里面的Text设置为空。
    在这个控件的左边放一个TextView写上你要的字就可以了
    用2个控件来实现
    我好象也没有找到RadioButton  这个控件有把字设置到左边的方法!