title: Radio button onclick change the view in android
body: <p>I have two radio buttons namely once and daily.When I click once it will load one image and when I click another button it will show another static image.Its all work fine. I designed the radio button with image loading by getting id of the radio button and set background resource. But now I am confused about how to configure the image with edit text and button fields.Can anyone help me to accomplish this task?</p>
  
  <pre><code>public void onCheckedChanged(RadioGroup group, int checkedId) {
  
          if (checkedId == R.id.once) {
                int imageId = (Integer) once.getTag();
  
                  imgview.setBackgroundResource(imageId);
  
          } else if (checkedId == R.id.daily) {
               int imageId = (Integer) daily.getTag();
  
                  imgview.setBackgroundResource(imageId);
  
          } 
      } 
  </code></pre>
  
  <p>This is my code.Now my requirement is to want to access edittext field and button field in image which was loaded when radio button is clicked.</p>