how to display texboxes dynamically in android app development?
<p>Hi I need to display the EditText boxes dynamically depending upon some number. I tried like this:</p>

<pre><code>   et1=(EditText) findViewById(R.id.editText1);
    et1.setVisibility(View.INVISIBLE);
    et2=(EditText) findViewById(R.id.editText2);
    et2.setVisibility(View.INVISIBLE);
    et3=(EditText) findViewById(R.id.editText3);
    et3.setVisibility(View.INVISIBLE);
    et4=(EditText) findViewById(R.id.editText3);
    et4.setVisibility(View.INVISIBLE);
    et5=(EditText) findViewById(R.id.editText3);
    et5.setVisibility(View.INVISIBLE);
    for(i=1;i&lt;=wl;++i)
    {
    et+i.setVisibility(View.VISIBLE);
    }
</code></pre>

<p>I am new to android app development. I knew there is something wrong in the for loop...could anyone fix it?? and also it would be appreciated if someone come up with some other method to disply the EditText box dynamically</p>
