It is beacouse you got only one instance of edittext which alerady has a parent after first click. Try to remove view from parent and than place it again. Or maybe try to show/hide it?
You should propably do something like this.
linearLayout.removeAllViews(); or linearLayout.removeView(editTextView);
...
linearLayout.addView(editTextView);