android radiobutton on listview
<p>is it possible to apply a radio group on the whole Listview?</p>

<p>I have a listview where each item has some image, a text and a simple single radio button. When a user clicks on say the first items radio button, i want  the previous selected radio button to be disabled. is this possible?</p>

<p>How do u apply a radio group on all radio button items?</p>

<p>my xml item layout looks like this</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;
    &lt;ImageView android:src="@drawable/card_colourblock_blue"
        android:layout_width="wrap_content" android:layout_height="wrap_content"
        android:id="@+id/colourIcon" android:layout_centerVertical="true"
        android:layout_marginLeft="10dip"&gt;&lt;/ImageView&gt;

    &lt;TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:text=""
        android:layout_toLeftOf="@+id/checkBox" android:id="@+id/text"
        android:layout_centerVertical="true" style="@style/Body"
        android:layout_toRightOf="@+id/colourIcon" /&gt;


    &lt;RadioButton android:id="@+id/radioButton1"
        android:layout_width="wrap_content" android:layout_height="wrap_content"
        android:layout_alignParentRight="true" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>Thanks</p>
