how to add dynamically radiobuttons in radiogroup in baseadapter.
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7964536/how-to-generate-dynamic-radiobutton-with-a-radiongroup-in-adapterview">how to generate dynamic RadioButton with a radiongroup in adapterView?</a>  </p>
</blockquote>



<p>i have a problem with my dynamic list.</p>

<p>i want to show all the list of options in radiobutton. so i take one xml in that radio gruop is there.</p>

<p>i want to take radionutton from baseadapter.</p>

<pre><code>&lt;LinearLayout
    android:id="@+id/type2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" &gt;

        &lt;RadioGroup 
            android:id="@+id/optionRadioGroup"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" &gt;  
            &lt;RadioButton
                android:id="@+id/optionRadio"
                android:layout_width="wrap_content"
                android:layout_height="45dip"
            /&gt;

        &lt;/RadioGroup&gt;


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

<p>suggest me to do that.</p>

<p>tanks in advance.</p>
