Can't edit an EditText Android
<p>Im trying to create an AlertDialog dynamically corresponding to the number of Strings in W.englishList. Im adding EditTexts to a grid layout by this way :</p>

<pre><code>final Activity act = this;

GridLayout lay = new GridLayout(act);
lay.setOrientation(GridLayout.VERTICAL);

int row = 1;

for (String i : W.englishList) {
        EditText text = new EditText(act);
        text.setText(i);
        LayoutParams p = new GridLayout.LayoutParams();

        p.bottomMargin = 5;
        p.width = GridLayout.LayoutParams.WRAP_CONTENT;
        p.columnSpec = GridLayout.spec(0);
        p.rowSpec = GridLayout.spec(tmp);

        text.setLayoutParams(p);
        lay.addView(text);
        row++;
        }
//Some AlertDialog.setContentView(lay);
</code></pre>

<p>Everything works except that i can't edit the Editexts created, I can focus them, copy them but i can't edit them (the keyboard doesnt show), any ideas ?</p>

<p>Edit: I can copy paste into them.</p>