title: how set value to a dynamically created edittext
body: <p>in my app i create a set of editText dynamically. how can we set values to a dynamically created editText. i create the editText and add this editText to list </p>
  
  <p>the code for creating the editText is given below</p>
  
  <pre><code>LinearLayout layout = new LinearLayout(context);
      layout.setId(expRow2);
      layout.setOrientation(LinearLayout.HORIZONTAL);
      layout.setGravity(Gravity.CENTER);
      for(int i=1;i&lt;=4;i++)
      {
          EditText editText = new EditText(context);
          editText.setHint(exp_EditTextName[i]);
          editText.setId(expRow+i);
          editText.setEms(10);
          editText.setLayoutParams(margins);
          layout.addView(editText);
          expEditTextList.add(editText);
      }
  </code></pre>
  
  <p>and i need to setValues to editText on other part of my code</p>
  
  <pre><code>final LinearLayout exp = new LinearLayout(context);
          exp.setOrientation(LinearLayout.VERTICAL);
          exp.setBackgroundColor(Color.GRAY);
          exp.setDescendantFocusability(LinearLayout.FOCUS_AFTER_DESCENDANTS);
          Button expAdd = new Button(context);
          expAdd.setId(123);
          expAdd.setBackgroundResource(R.drawable.small_add);
          expAdd.setLayoutParams(marginLeftElement);
          exp.addView(expAdd);
          exp.addView(layout);
  EditText edittext  = (EditText)expEditTextList.get(0);
  edittext.setText("hai");
  </code></pre>
  
  <p>but i cant set values to the editText.</p>