At that, I would like to ask for your help, how can I view more dynamically to create Android?
I saw somewhere that you need to create a View [] array, and it can be implemented in a "for" loop. It did not succeed. Here's the code which I tried.

```
LinearLayout main = (LinearLayout) findViewById(R.id.main);
    LayoutParams lp = new LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);
    TextView atv[] = new TextView[2];
    for (int i = 1; i <= 2; i++){
        atv[i] = new TextView(this);
        atv[i].setLayoutParams(lp);
        atv[i].setText(i+"\n");
        atv[i].setTextSize(18);
        main.addView(atv[i]);
    }

```

Unfortunately it does not work! Can you help me ?!
Thank you very much for your help. Pengewap