2
public void criaForm(){
for (int i = 0; i < 5; i++) {
EditText et = new EditText(this);
linearLayout.addView(et);
TextView tv = new TextView(this);
linearLayout.addView(tv);
}
}
I created several EditTexts
within a for
, with this they have the same name and id, is there any way where I can differentiate them? I thank you from now!
Dude... it’s not clear your question... try to express yourself better and put some code pieces so we can help you!
– Kleyton Santos
Hello, I just wanted to differentiate one Edittext from another by its name or id. I put a piece of my code where I create it. In my code I have 5 et. I wanted for example, when clicking on the second et, to know that I clicked on it.
– daniel12345smith