It looks like it's because the background color isn't set on the new EditText
since the background color is set in xml then you add a View
to it. You need to then set the background color to your newly added EditText
.
I believe something like
editT.setBackgroundColor(Color.parseColor("#0F0"));
should work.