How to add radio button dynamically as per the given number of counts?
Please find below the code, I have created an ‘EditText’ and a ‘Button’ in the xml layout. Input a number in the ‘EditText’ and click the Button , The same no. of radio buttons will be added in the Layout. This is your ActivityMain public class ActivityMain extends AppCompatActivity implements View.OnClickListener { EditText mEtNumOfRadioBtns; Button … Read more