title: text not changing in a TextView while doing Layout Inflater
body: <p>in my app when the activity get loaded, i am doing the following </p>
  
  <pre><code>setContentView(R.layout.main2);
  layoutToAdd = (LinearLayout) findViewById(R.id.linearLayout1);
  
  for(i=0; i&lt;num;i++)
  {
      LayoutInflater inflater = LayoutInflater.from(getApplicationContext());
      View view = inflater.inflate(R.layout.camera, null);
      layoutToAdd.addView(view);
  }
  </code></pre>
  
  <p>The value of num differs for each time.</p>
  
  <p>In my LayoutInflater layout i have a text view, edit text and a button.</p>
  
  <p>Now they are shown according to the number of times mentioned in <code>num</code>, now for each time i want the text and button name to be changed. How to set the text for TextView and Button.</p>