android开发中求问简单的xml布局~

中间的radiogroup如何才能把图片加进去呢?我已经把图片放到资源里去了,直接拖的话好像不能放进去…图片说明

没懂问的什么意思,radiobutton加图片很简单的啊。

可以参考:
http://blog.csdn.net/xubright/article/details/8488835
http://dengli19881102.iteye.com/blog/2094904

 <RadioGroup
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <RadioButton
            android:id="@+id/radioButton1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@mipmap/ic_launcher" />

        <RadioButton
            android:id="@+id/radioButton2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@mipmap/ic_launcher" />

        <RadioButton
            android:id="@+id/radioButton3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />

        <ImageView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@mipmap/ic_launcher" />
    </RadioGroup>

使用android:drawleft=“@drawable/图片资源名称”

支持楼上说的,没必要建一个imageview控件,可以直接设置radiogroup的图片属性,可有上下左右的显示图片

radioButton 的属性drawableLeft top bottom right 可以将图片放置在上下左右任一位置