I have a Dynamic list..
I want to show that list in adapter view with radio buttons. in one group.
I used:
public class Type2Adapter extends
<RadioGroup
android:id="@+id/optionRadioGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</RadioGroup>
//here i am adding 6 radiobutton .
rgroup=(RadioGroup)findViewById(R.id.optionRadioGroup);
for(int i=0; i<6; i++)
{
rb[i]=new RadioButton(context);
rb[i].setText("rdo"+i);
rb[i].setId(i);
rgroup.addView(rb[i]);
}