title: Android : Draw TextEdit(s) or TextView(s) when user enter number of them.[exp: 6 then draw 6 TextView]
body: <p>Wantto ask user to enter number of TextEdit or ViewText and then draw them.
  For-example user enter 7,then seven ViewText draw.I knew this is a suitable way but in my prgrm i cant change the whole structure,the i got this erro at:</p>
  
  <pre><code>    tv = new TextView(this);
  </code></pre>
  
  <p>and error is: "The constructor TextView(new View.OnClickListener(){}) is undefined".</p>
  
  <p>i knew i have to do:</p>
  
  <pre><code>    implements OnClickListener
  </code></pre>
  
  <p>but i cant change the prgrm now.SO is there anyway to create TextView(or any View objct) without refrence it to 'layout' xml? </p>
  
  <pre><code>    LinearLayout ll = (LinearLayout)findViewById(R.id.myLL);
      for(int i=1 ; i&lt;= 10 ; i++){
        TextView tv = new TextView(this);
        tv.setText("String/String/String");
        ll.addView(tv);
        } 
  </code></pre>
  
  <p><em>THANKS,,</em></p>